|
1 |
| -// https://eslint.org/docs/user-guide/configuring |
2 |
| - |
3 |
| -module.exports = { |
4 |
| - root: true, |
5 |
| - parserOptions: { |
6 |
| - parser: 'babel-eslint', |
7 |
| - }, |
8 |
| - env: { |
9 |
| - browser: true, |
10 |
| - }, |
11 |
| - extends: ['airbnb-base'], |
12 |
| - // check if imports actually resolve |
13 |
| - settings: { |
14 |
| - 'import/resolver': { |
15 |
| - webpack: { |
16 |
| - config: 'build/webpack.base.conf.js' |
17 |
| - } |
18 |
| - } |
19 |
| - }, |
20 |
| - // add your custom rules here |
21 |
| - rules: { |
22 |
| - // allow optionalDependencies |
23 |
| - 'import/no-extraneous-dependencies': ['error', { |
24 |
| - optionalDependencies: ['test/index.js'] |
25 |
| - }], |
26 |
| - // allow debugger during development |
27 |
| - 'no-debugger': 'error', |
28 |
| - //custom spaces rules |
29 |
| - 'indent': 'off', |
30 |
| - 'indent-legacy': ['error', 4, { SwitchCase: 1 }], |
31 |
| - 'linebreak-style': 0, |
32 |
| - 'max-len': ['error', 120, { ignoreComments: true }], |
33 |
| - 'vue/no-template-key': 'off', |
34 |
| - 'object-curly-newline': ["error", { "consistent": true }], |
35 |
| - }, |
36 |
| -}; |
| 1 | +// https://eslint.org/docs/user-guide/configuring |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + root: true, |
| 5 | + parserOptions: { |
| 6 | + parser: 'babel-eslint', |
| 7 | + }, |
| 8 | + env: { |
| 9 | + browser: true, |
| 10 | + }, |
| 11 | + extends: ['airbnb-base'], |
| 12 | + // check if imports actually resolve |
| 13 | + settings: { |
| 14 | + 'import/resolver': { |
| 15 | + webpack: { |
| 16 | + config: 'build/webpack.base.conf.cjs' |
| 17 | + } |
| 18 | + } |
| 19 | + }, |
| 20 | + // add your custom rules here |
| 21 | + rules: { |
| 22 | + // allow optionalDependencies |
| 23 | + 'import/no-extraneous-dependencies': ['error', { |
| 24 | + optionalDependencies: ['test/index.js'] |
| 25 | + }], |
| 26 | + // allow debugger during development |
| 27 | + 'no-debugger': 'error', |
| 28 | + //custom spaces rules |
| 29 | + 'indent': 'off', |
| 30 | + 'indent-legacy': ['error', 4, { SwitchCase: 1 }], |
| 31 | + 'linebreak-style': 0, |
| 32 | + 'max-len': ['error', 120, { ignoreComments: true }], |
| 33 | + 'vue/no-template-key': 'off', |
| 34 | + 'object-curly-newline': ["error", { "consistent": true }], |
| 35 | + }, |
| 36 | +}; |
0 commit comments