|
1 | 1 | module.exports = { |
2 | | - env: { |
3 | | - browser: true, |
4 | | - commonjs: true, |
5 | | - es2020: true, |
6 | | - }, |
7 | | - extends: [ |
8 | | - 'airbnb-base', |
9 | | - ], |
10 | | - parser: '@typescript-eslint/parser', |
11 | | - parserOptions: { |
12 | | - ecmaVersion: 11, |
13 | | - }, |
14 | | - plugins: [ |
15 | | - '@typescript-eslint', |
16 | | - ], |
17 | | - rules: { |
18 | | - "linebreak-style": 0, |
19 | | - indent: 0, |
20 | | - quotes: 0, |
21 | | - "no-console": ["warn", { allow: ["warn", "error"] }], |
22 | | - "max-classes-per-file": 0, |
23 | | - "no-trailing-spaces": 1, |
24 | | - "no-unused-vars": 1, |
25 | | - "no-undef": 0, |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + commonjs: true, |
| 5 | + es2020: true, |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + "eslint:recommended", |
| 9 | + "plugin:@typescript-eslint/eslint-recommended", |
| 10 | + "plugin:@typescript-eslint/recommended" |
| 11 | + ], |
| 12 | + parser: "@typescript-eslint/parser", |
| 13 | + parserOptions: { |
| 14 | + ecmaVersion: 11, |
| 15 | + }, |
| 16 | + plugins: [ |
| 17 | + "@typescript-eslint", |
| 18 | + ], |
| 19 | + rules: { |
| 20 | + "linebreak-style": ["error", "windows"], |
| 21 | + indent: ["error", 4], |
| 22 | + quotes: ["error", "double"], |
| 23 | + "no-console": 0, // ["warn", { allow: ["warn", "error"] }], |
| 24 | + "max-classes-per-file": ["error", 2], |
| 25 | + "no-trailing-spaces": 1, |
| 26 | + "no-unused-vars": 0, |
| 27 | + "@typescript-eslint/no-unused-vars": 1, |
| 28 | + "no-undef": 0, |
26 | 29 |
|
27 | | - "global-require": 0, |
28 | | - "import/extensions": 0, |
29 | | - "import/no-unresolved": 0, // maybe 1? |
| 30 | + "global-require": 0, |
| 31 | + "import/extensions": 0, |
| 32 | + "import/no-unresolved": 0, // maybe 1? |
30 | 33 |
|
31 | | - "spaced-comment": 0, |
32 | | - "space-infix-ops": 0, |
33 | | - "no-plusplus": ["error", { allowForLoopAfterthoughts: true }], |
34 | | - "lines-between-class-members": 0, |
35 | | - "no-param-reassign": ["error", { props: false }], |
36 | | - }, |
| 34 | + "comma-spacing": 2, |
| 35 | + "quote-props": ["warn", "as-needed"], |
| 36 | + // "spaced-comment": 0, |
| 37 | + "space-infix-ops": 2, |
| 38 | + "no-plusplus": ["error", { allowForLoopAfterthoughts: true }], |
| 39 | + "lines-between-class-members": 0, |
| 40 | + "no-param-reassign": ["error", { props: false }], |
| 41 | + }, |
37 | 42 | }; |
0 commit comments