@@ -3,13 +3,8 @@ module.exports = {
33 env : {
44 node : true ,
55 } ,
6- plugins : [
7- 'vue' ,
8- ] ,
9- extends : [
10- 'plugin:vue/essential' ,
11- '@vue/airbnb' ,
12- ] ,
6+ plugins : [ 'vue' ] ,
7+ extends : [ 'plugin:vue/essential' , '@vue/airbnb' ] ,
138 rules : {
149 'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
1510 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
@@ -19,6 +14,7 @@ module.exports = {
1914 'no-underscore-dangle' : 0 , // 无下划线
2015 camelcase : 0 , // 变量可以用下划线
2116 semi : [ 'error' , 'never' ] , // 无分号
17+ 'no-extra-semi' : 0 , // 和prettier冲突
2218 'no-plusplus' : 0 , // 禁止使用++,--
2319 // 'no-tabs': [o],
2420 'guard-for-in' : 0 ,
@@ -28,6 +24,15 @@ module.exports = {
2824 'no-restricted-syntax' : 0 ,
2925 'class-methods-use-this' : 'off' ,
3026 'consistent-return' : 'off' ,
27+ 'arrow-parens' : [ 'error' , 'as-needed' ] ,
28+ 'object-curly-newline' : [
29+ 'error' ,
30+ {
31+ ImportDeclaration : 'never' ,
32+ } ,
33+ ] ,
34+ 'comma-dangle' : [ 'error' , 'only-multiline' ] ,
35+ 'no-param-reassign' : [ 'error' , { props : false } ] ,
3136 } ,
3237 parserOptions : {
3338 parser : 'babel-eslint' ,
0 commit comments