@@ -9,35 +9,32 @@ module.exports = {
9
9
plugins : [ 'vue' ] ,
10
10
extends : [ 'plugin:vue/essential' , '@vue/airbnb' ] ,
11
11
rules : {
12
- 'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
13
- 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
14
- 'import/extensions' : 0 , // import不需要写文件扩展名
15
- 'import/no-unresolved' : 0 ,
16
- // 'import/no-duplicates': 0,
17
- 'no-underscore-dangle' : 0 , // 无下划线
18
12
camelcase : 0 , // 变量可以用下划线
19
- semi : [ 'error' , 'never' ] , // 无分号
20
- 'no-extra-semi' : 0 , // 和prettier冲突
21
13
'no-plusplus' : 0 , // 禁止使用++,--
22
- // 'no-tabs': [o],
23
14
'guard-for-in' : 0 ,
24
- 'max-len' : [ 'error' , { code : 200 } ] ,
15
+ 'no-extra-semi' : 0 , // 和prettier冲突
16
+ 'import/extensions' : 0 , // import不需要写文件扩展名
17
+ 'import/no-unresolved' : 0 ,
18
+ 'no-underscore-dangle' : 0 , // 无下划线
25
19
'no-restricted-syntax' : 0 ,
26
- 'import/no-extraneous-dependencies' : [ 'error' , { devDependencies : [ 'script/**/*.js' ] } ] ,
27
20
'no-restricted-syntax' : 0 ,
28
- 'class-methods-use-this' : 'off' ,
29
21
'consistent-return' : 'off' ,
30
- 'arrow-parens' : [ 'error' , 'as-needed' ] ,
31
22
'no-prototype-builtins' : 'off' ,
23
+ 'class-methods-use-this' : 'off' ,
24
+ semi : [ 'error' , 'never' ] , // 无分号
25
+ 'max-len' : [ 'error' , { code : 200 } ] ,
26
+ 'arrow-parens' : [ 'error' , 'as-needed' ] ,
27
+ 'comma-dangle' : [ 'error' , 'only-multiline' ] ,
28
+ 'no-param-reassign' : [ 'error' , { props : false } ] ,
29
+ 'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
30
+ 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
31
+ 'import/no-extraneous-dependencies' : [ 'error' , { devDependencies : [ 'script/**/*.js' ] } ] ,
32
32
'object-curly-newline' : [
33
33
'error' ,
34
34
{
35
35
ImportDeclaration : 'never' ,
36
36
} ,
37
37
] ,
38
- 'comma-dangle' : [ 'error' , 'only-multiline' ] ,
39
- 'no-param-reassign' : [ 'error' , { props : false } ] ,
40
- 'max-len' : 0 ,
41
38
} ,
42
39
parserOptions : {
43
40
parser : 'babel-eslint' ,
0 commit comments