|
16 | 16 | */ |
17 | 17 |
|
18 | 18 | module.exports = { |
19 | | - root: true, |
20 | | - env: { |
21 | | - node: true |
22 | | - }, |
23 | | - extends: [ |
24 | | - 'eslint:recommended', |
25 | | - 'plugin:vue/essential' |
| 19 | + root: true, |
| 20 | + env: { |
| 21 | + node: true |
| 22 | + }, |
| 23 | + extends: ["eslint:recommended", "plugin:vue/essential"], |
| 24 | + rules: { |
| 25 | + "no-console": process.env.NODE_ENV === "production" ? "error" : "off", |
| 26 | + "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", |
| 27 | + "key-spacing": ["error"], |
| 28 | + "standard/no-callback-literal": 0, |
| 29 | + "handle-callback-err": 0, |
| 30 | + "no-return-assign": 0, |
| 31 | + eqeqeq: 0, |
| 32 | + "comma-dangle": 0, |
| 33 | + semi: 0, |
| 34 | + "space-before-function-paren": 0, |
| 35 | + "keyword-spacing": 0, |
| 36 | + "no-useless-escape": 0, |
| 37 | + "operator-linebreak": 0, |
| 38 | + // 'indent': [ |
| 39 | + // 'error', |
| 40 | + // 2, |
| 41 | + // { |
| 42 | + // 'SwitchCase': 1 |
| 43 | + // } |
| 44 | + // ], |
| 45 | + "no-const-assign": "warn", |
| 46 | + "no-this-before-super": "warn", |
| 47 | + "no-irregular-whitespace": 0, |
| 48 | + "no-undef": 2, |
| 49 | + "no-unreachable": "warn", |
| 50 | + "no-unused-vars": ["error", { args: "none" }], |
| 51 | + "constructor-super": "warn", |
| 52 | + "valid-typeof": "warn", |
| 53 | + "one-var": "warn", |
| 54 | + "max-len": "off", |
| 55 | + "no-trailing-spaces": "off", |
| 56 | + "require-jsdoc": "warn", |
| 57 | + camelcase: "warn", |
| 58 | + "no-invalid-this": "off", |
| 59 | + "linebreak-style": 0, |
| 60 | + "vue/no-parsing-error": [ |
| 61 | + 2, |
| 62 | + { |
| 63 | + "x-invalid-end-tag": false, |
| 64 | + "invalid-first-character-of-tag-name": false |
| 65 | + } |
26 | 66 | ], |
27 | | - rules: { |
28 | | - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
29 | | - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
30 | | - 'key-spacing': ['error'], |
31 | | - 'standard/no-callback-literal': 0, |
32 | | - 'handle-callback-err': 0, |
33 | | - 'no-return-assign': 0, |
34 | | - 'eqeqeq': 0, |
35 | | - 'comma-dangle': 0, |
36 | | - 'semi': 0, |
37 | | - 'space-before-function-paren': 0, |
38 | | - 'keyword-spacing': 0, |
39 | | - 'no-useless-escape': 0, |
40 | | - 'operator-linebreak': 0, |
41 | | - 'indent': [ |
42 | | - 'error', |
43 | | - 2, |
44 | | - { |
45 | | - 'SwitchCase': 1 |
46 | | - } |
47 | | - ], |
48 | | - 'no-const-assign': 'warn', |
49 | | - 'no-this-before-super': 'warn', |
50 | | - "no-irregular-whitespace": 0, |
51 | | - 'no-undef': 2, |
52 | | - 'no-unreachable': 'warn', |
53 | | - 'no-unused-vars': ['error', { "args": "none" }], |
54 | | - 'constructor-super': 'warn', |
55 | | - 'valid-typeof': 'warn', |
56 | | - 'one-var': 'warn', |
57 | | - 'max-len': 'off', |
58 | | - 'no-trailing-spaces': 'off', |
59 | | - 'require-jsdoc': 'warn', |
60 | | - 'camelcase': 'warn', |
61 | | - 'no-invalid-this': 'off', |
62 | | - 'linebreak-style': 0, |
63 | | - 'vue/no-parsing-error': [2, { |
64 | | - 'x-invalid-end-tag': false, |
65 | | - 'invalid-first-character-of-tag-name': false |
66 | | - }], |
67 | | - 'no-tabs': 0, |
68 | | - 'vue/require-default-prop': 0, |
69 | | - 'vue/component-name-in-template-casing': 0, |
70 | | - 'vue/html-closing-bracket-spacing': 0, |
71 | | - 'vue/html-closing-bracket-newline': 0, |
72 | | - 'vue/singleline-html-element-content-newline': 0, |
73 | | - 'vue/multiline-html-element-content-newline': 0, |
74 | | - 'vue/attributes-order': 0, |
75 | | - 'vue/html-self-closing': 0, |
76 | | - 'no-useless-constructor': 0, |
77 | | - 'no-mixed-operators': 0, |
78 | | - 'no-new-func': 0, |
79 | | - 'no-template-curly-in-string': 0, |
80 | | - 'no-useless-call': 0, |
81 | | - "one-var": 0, |
82 | | - "camelcase": 0 |
83 | | - }, |
84 | | - parserOptions: { |
85 | | - "parser": 'babel-eslint', |
86 | | - "sourceType": "module" |
87 | | - } |
88 | | -} |
| 67 | + "no-tabs": 0, |
| 68 | + "vue/require-default-prop": 0, |
| 69 | + "vue/component-name-in-template-casing": 0, |
| 70 | + "vue/html-closing-bracket-spacing": 0, |
| 71 | + "vue/html-closing-bracket-newline": 0, |
| 72 | + "vue/singleline-html-element-content-newline": 0, |
| 73 | + "vue/multiline-html-element-content-newline": 0, |
| 74 | + "vue/attributes-order": 0, |
| 75 | + "vue/html-self-closing": 0, |
| 76 | + "no-useless-constructor": 0, |
| 77 | + "no-mixed-operators": 0, |
| 78 | + "no-new-func": 0, |
| 79 | + "no-template-curly-in-string": 0, |
| 80 | + "no-useless-call": 0, |
| 81 | + "one-var": 0, |
| 82 | + camelcase: 0 |
| 83 | + }, |
| 84 | + parserOptions: { |
| 85 | + parser: "babel-eslint", |
| 86 | + sourceType: "module" |
| 87 | + } |
| 88 | +}; |
0 commit comments