@@ -9,35 +9,32 @@ module.exports = {
99 plugins : [ 'vue' ] ,
1010 extends : [ 'plugin:vue/essential' , '@vue/airbnb' ] ,
1111 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 , // 无下划线
1812 camelcase : 0 , // 变量可以用下划线
19- semi : [ 'error' , 'never' ] , // 无分号
20- 'no-extra-semi' : 0 , // 和prettier冲突
2113 'no-plusplus' : 0 , // 禁止使用++,--
22- // 'no-tabs': [o],
2314 '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 , // 无下划线
2519 'no-restricted-syntax' : 0 ,
26- 'import/no-extraneous-dependencies' : [ 'error' , { devDependencies : [ 'script/**/*.js' ] } ] ,
2720 'no-restricted-syntax' : 0 ,
28- 'class-methods-use-this' : 'off' ,
2921 'consistent-return' : 'off' ,
30- 'arrow-parens' : [ 'error' , 'as-needed' ] ,
3122 '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' ] } ] ,
3232 'object-curly-newline' : [
3333 'error' ,
3434 {
3535 ImportDeclaration : 'never' ,
3636 } ,
3737 ] ,
38- 'comma-dangle' : [ 'error' , 'only-multiline' ] ,
39- 'no-param-reassign' : [ 'error' , { props : false } ] ,
40- 'max-len' : 0 ,
4138 } ,
4239 parserOptions : {
4340 parser : 'babel-eslint' ,
0 commit comments