|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + node: true |
| 5 | + }, |
| 6 | + 'extends': [ |
| 7 | + 'plugin:vue/essential', |
| 8 | + '@vue/standard' |
| 9 | + ], |
| 10 | + rules: { |
| 11 | + 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
| 12 | + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
| 13 | + 'key-spacing': ['error'], |
| 14 | + 'keyword-spacing': ['error'], |
| 15 | + 'standard/no-callback-literal': 0, |
| 16 | + 'handle-callback-err': 0, |
| 17 | + 'no-return-assign': 0, |
| 18 | + 'eqeqeq': 0, |
| 19 | + 'comma-dangle': 0, |
| 20 | + 'semi': 0, |
| 21 | + 'space-before-function-paren': 0, |
| 22 | + 'keyword-spacing': 0, |
| 23 | + 'no-useless-escape': 0, |
| 24 | + 'no-invalid-this': 0, |
| 25 | + 'operator-linebreak': 0, |
| 26 | + 'indent': [ |
| 27 | + 'error', |
| 28 | + 4, |
| 29 | + { |
| 30 | + 'SwitchCase': 1 |
| 31 | + } |
| 32 | + ], |
| 33 | + 'no-const-assign': 'warn', |
| 34 | + 'no-this-before-super': 'warn', |
| 35 | + 'no-undef': 2, |
| 36 | + 'no-unreachable': 'warn', |
| 37 | + 'no-unused-vars': 'warn', |
| 38 | + 'constructor-super': 'warn', |
| 39 | + 'valid-typeof': 'warn', |
| 40 | + 'one-var': 'warn', |
| 41 | + 'max-len': 'off', |
| 42 | + 'no-trailing-spaces': 'off', |
| 43 | + 'require-jsdoc': 'warn', |
| 44 | + 'camelcase': 'warn', |
| 45 | + 'no-invalid-this': 'warn', |
| 46 | + 'linebreak-style': 0, |
| 47 | + 'vue/no-parsing-error': [2, { |
| 48 | + 'x-invalid-end-tag': false, |
| 49 | + 'invalid-first-character-of-tag-name': false |
| 50 | + }], |
| 51 | + 'no-tabs': 0, |
| 52 | + 'vue/html-indent': [2, 2, { |
| 53 | + 'attribute': 1, |
| 54 | + 'closeBracket': 0, |
| 55 | + 'alignAttributesVertically': false |
| 56 | + }], |
| 57 | + 'vue/require-default-prop': 0, |
| 58 | + 'vue/component-name-in-template-casing': 0, |
| 59 | + 'vue/html-closing-bracket-spacing': 0, |
| 60 | + 'vue/html-closing-bracket-newline': 0, |
| 61 | + 'vue/singleline-html-element-content-newline': 0, |
| 62 | + 'vue/multiline-html-element-content-newline': 0, |
| 63 | + 'vue/attributes-order': 0, |
| 64 | + 'vue/html-self-closing': 0 |
| 65 | + }, |
| 66 | + parserOptions: { |
| 67 | + parser: 'babel-eslint' |
| 68 | + } |
| 69 | +} |
0 commit comments