Skip to content

Commit 1c3badb

Browse files
authored
Merge pull request #63 from JJ-Cro/eslintFix07_25
feat(v1.2.3): update ESLint and TS versions,run lint to fix errors
2 parents 407ab92 + 695eeef commit 1c3badb

File tree

9 files changed

+473
-421
lines changed

9 files changed

+473
-421
lines changed

.eslintrc.cjs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
node: true,
2121
jest: true,
2222
},
23-
ignorePatterns: ['.eslintrc.js'],
23+
ignorePatterns: ['.eslintrc.js', 'webpack.config.js', 'examples/apidoc'],
2424
rules: {
2525
'@typescript-eslint/interface-name-prefix': 'off',
2626
'@typescript-eslint/explicit-function-return-type': 'off',
@@ -30,5 +30,29 @@ module.exports = {
3030
'@typescript-eslint/ban-types': 'off',
3131
'simple-import-sort/imports': 'error',
3232
'simple-import-sort/exports': 'error',
33+
'array-bracket-spacing': ['error', 'never'],
34+
'no-param-reassign': ['error'],
35+
'linebreak-style': ['error', 'unix'],
36+
'lines-between-class-members': ['warn', 'always'],
37+
'@typescript-eslint/no-empty-object-type': [
38+
'error',
39+
{ allowObjectTypes: 'always' },
40+
],
41+
semi: ['error', 'always'],
42+
'new-cap': 'off',
43+
'no-console': 'off',
44+
'no-debugger': 'off',
45+
'no-mixed-spaces-and-tabs': 2,
46+
'no-use-before-define': [2, 'nofunc'],
47+
'no-unreachable': ['warn'],
48+
// 'no-unused-vars': ['warn'],
49+
'no-extra-parens': ['off'],
50+
'no-mixed-operators': ['off'],
51+
quotes: [2, 'single', 'avoid-escape'],
52+
'block-scoped-var': 2,
53+
'brace-style': [2, '1tbs', { allowSingleLine: true }],
54+
'computed-property-spacing': [2, 'never'],
55+
'keyword-spacing': 2,
56+
'space-unary-ops': 2,
3357
},
3458
};

0 commit comments

Comments
 (0)