|
1 | 1 | module.exports = { |
2 | 2 | root: true, |
3 | 3 | env: { |
4 | | - node: true |
| 4 | + node: true, |
5 | 5 | }, |
6 | | - 'extends': [ |
7 | | - 'plugin:vue/essential', |
8 | | - 'eslint:recommended' |
9 | | - ], |
| 6 | + extends: ['plugin:vue/recommended'], |
10 | 7 | parserOptions: { |
11 | | - parser: 'babel-eslint' |
| 8 | + parser: 'babel-eslint', |
12 | 9 | }, |
13 | 10 | rules: { |
14 | 11 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
15 | | - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' |
16 | | - } |
| 12 | + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 13 | + 'no-unused-vars': 'off', |
| 14 | + semi: ['warn', 'never'], |
| 15 | + quotes: ['warn', 'single'], |
| 16 | + 'prefer-const': 'warn', |
| 17 | + indent: 'off', |
| 18 | + eqeqeq: 'off', |
| 19 | + 'no-plusplus': 'off', |
| 20 | + 'max-len': ['warn', { |
| 21 | + 'code': 200, |
| 22 | + 'ignoreStrings': true, |
| 23 | + 'ignoreComments': true, |
| 24 | + 'ignoreTemplateLiterals': true, |
| 25 | + }], |
| 26 | + 'no-empty': 'warn', |
| 27 | + 'arrow-parens': 'warn', |
| 28 | + 'no-trailing-spaces': 'warn', |
| 29 | + 'comma-dangle': ['warn', 'always-multiline'], |
| 30 | + 'object-curly-newline': 'off', |
| 31 | + 'class-methods-use-this': 'off', |
| 32 | + 'no-continue': 'off', |
| 33 | + 'no-loop-func': 'off', |
| 34 | + 'linebreak-style': 'off', |
| 35 | + 'no-restricted-syntax': 'off', |
| 36 | + 'operator-linebreak': 'off', |
| 37 | + 'vue/max-attributes-per-line': 'off', |
| 38 | + |
| 39 | + 'vue/require-prop-types':'warn', |
| 40 | + 'vue/require-default-prop':'warn', |
| 41 | + 'vue/prop-name-casing': 'warn', |
| 42 | + }, |
17 | 43 | } |
0 commit comments