|
1 | 1 | module.exports = { |
2 | | - "extends": "airbnb-base", |
3 | | - "plugins": [ |
4 | | - "import" |
5 | | - ], |
6 | | - "rules": { |
7 | | - "import/no-unresolved": 0, |
8 | | - "comma-dangle": 0, |
9 | | - "no-trailing-spaces": ["error", { |
10 | | - "skipBlankLines": true |
11 | | - }], |
12 | | - "no-console": 0, |
13 | | - "arrow-parens": 0, |
14 | | - "import/extensions": 0, |
15 | | - "quotes": 0, |
16 | | - "no-prototype-builtins": 0, |
17 | | - "class-methods-use-this": 0, |
18 | | - "no-param-reassign": 0, |
19 | | - "no-mixed-operators": 0, |
20 | | - "no-else-return": 0, |
21 | | - "prefer-promise-reject-errors": 0, |
22 | | - "operator-linebreak": ["error", "after"], |
23 | | - 'max-len': ['error', 120, 2, { |
24 | | - ignoreUrls: true, |
25 | | - ignoreComments: false, |
26 | | - ignoreRegExpLiterals: true, |
27 | | - ignoreStrings: true, |
28 | | - ignoreTemplateLiterals: true, |
29 | | - }] |
30 | | - } |
| 2 | + extends: 'airbnb-base', |
| 3 | + plugins: ['import'], |
| 4 | + rules: { |
| 5 | + 'import/no-unresolved': 0, |
| 6 | + 'comma-dangle': 0, |
| 7 | + 'no-trailing-spaces': [ |
| 8 | + 'error', |
| 9 | + { |
| 10 | + skipBlankLines: true, |
| 11 | + }, |
| 12 | + ], |
| 13 | + 'no-console': 0, |
| 14 | + 'arrow-parens': 0, |
| 15 | + 'import/extensions': 0, |
| 16 | + quotes: 0, |
| 17 | + 'no-prototype-builtins': 0, |
| 18 | + 'class-methods-use-this': 0, |
| 19 | + 'no-param-reassign': 0, |
| 20 | + 'no-mixed-operators': 0, |
| 21 | + 'no-else-return': 0, |
| 22 | + 'prefer-promise-reject-errors': 0, |
| 23 | + 'object-curly-newline': 0, |
| 24 | + 'operator-linebreak': ['error', 'after'], |
| 25 | + 'max-len': [ |
| 26 | + 'error', |
| 27 | + 120, |
| 28 | + 2, |
| 29 | + { |
| 30 | + ignoreUrls: true, |
| 31 | + ignoreComments: false, |
| 32 | + ignoreRegExpLiterals: true, |
| 33 | + ignoreStrings: true, |
| 34 | + ignoreTemplateLiterals: true, |
| 35 | + }, |
| 36 | + ], |
| 37 | + }, |
31 | 38 | }; |
0 commit comments