@alicevia/eslint-config-vue 1.0.17 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +13 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -10,6 +10,17 @@ module.exports = {
|
|
10
10
|
'plugin:@typescript-eslint/recommended',
|
11
11
|
],
|
12
12
|
overrides: [
|
13
|
+
{
|
14
|
+
files: ['*.vue'],
|
15
|
+
rules: {
|
16
|
+
'vue/multi-word-component-names': [
|
17
|
+
'error',
|
18
|
+
{
|
19
|
+
ignores: ['index'], //需要忽略的组件名
|
20
|
+
},
|
21
|
+
],
|
22
|
+
},
|
23
|
+
},
|
13
24
|
],
|
14
25
|
parser: 'vue-eslint-parser',
|
15
26
|
parserOptions: {
|
@@ -27,9 +38,10 @@ module.exports = {
|
|
27
38
|
indent: ['error', 2],
|
28
39
|
semi: ['error', 'never'],
|
29
40
|
'comma-dangle': ['error', 'always-multiline'],
|
41
|
+
'comma-spacing': ['error', { before: false, after: true }],
|
30
42
|
'space-before-function-paren': ['error', 'always'],
|
31
43
|
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0,maxBOF: 0 }],
|
32
|
-
'key-spacing': ['error', {
|
44
|
+
'key-spacing': ['error', { mode: 'strict' }],
|
33
45
|
'arrow-spacing': ['error',{ before: true, after: true }],
|
34
46
|
'object-curly-spacing': ['error', 'always'],
|
35
47
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|