@@ -44,37 +44,39 @@ module.exports = {
44
44
] ,
45
45
'func-names' : [ 'error' , 'never' ] ,
46
46
'function-paren-newline' : 0 ,
47
- 'import/no-self-import' : 0 ,
48
- 'import/no-extraneous-dependencies' : 0 ,
49
47
'implicit-arrow-linebreak' : [ 'warn' , 'beside' ] ,
48
+ 'import/no-extraneous-dependencies' : 0 ,
49
+ 'import/no-self-import' : 0 ,
50
50
indent : [ 2 , 'tab' , { SwitchCase : 1 } ] ,
51
- 'no-tabs' : [ 0 , { allowIndentationTabs : true } ] ,
52
51
'linebreak-style' : 0 ,
53
52
'max-len' : 0 ,
54
- 'no-else-return ' : [ 'error ' , { allowElseIf : true } ] ,
55
- 'no-console ' : [ 'warn' , { allow : [ 'warn' , ' error', 'info' ] } ] ,
53
+ 'no-console ' : [ 'warn ' , { allow : [ 'warn' , 'error' , 'info' , 'trace' ] } ] ,
54
+ 'no-const-assign ' : ' error',
56
55
'no-debugger' : 0 ,
56
+ 'no-else-return' : [ 'error' , { allowElseIf : true } ] ,
57
57
'no-new' : 0 ,
58
- 'no-unused-vars' : 1 ,
59
- 'no-use-before-define' : 0 ,
60
- 'no-useless-escape' : 0 ,
61
58
'no-param-reassign' : [
62
59
'error' , {
63
- props : true ,
64
60
ignorePropertyModificationsFor : [ 'field' , 'model' , 'el' , 'item' , 'state' , 'Vue' , 'vue' ] ,
61
+ props : true ,
65
62
} ,
66
63
] ,
64
+ 'no-plusplus' : [
65
+ 'error' , { allowForLoopAfterthoughts : true } ,
66
+ ] ,
67
+ 'no-tabs' : [ 0 , { allowIndentationTabs : true } ] ,
68
+ 'no-undef' : 0 ,
67
69
'no-underscore-dangle' : [
68
70
'error' , {
69
71
allow : [ '_data' ] ,
70
72
allowAfterThis : true ,
71
73
} ,
72
74
] ,
73
- 'no-plusplus ' : [
74
- 'error' , { allowForLoopAfterthoughts : true } ,
75
- ] ,
75
+ 'no-unused-vars ' : 1 ,
76
+ 'no-use-before-define' : 0 ,
77
+ 'no-useless-escape' : 0 ,
76
78
'object-curly-newline' : [ 'error' , {
77
- ObjectPattern : { multiline : false } ,
79
+ ObjectPattern : { multiline : true } ,
78
80
} ] ,
79
81
'operator-linebreak' : [ 'error' , 'after' ] ,
80
82
'prefer-destructuring' : [
@@ -88,15 +90,41 @@ module.exports = {
88
90
] ,
89
91
'space-before-function-paren' : [ 'error' , {
90
92
anonymous : 'never' ,
93
+ asyncArrow : 'always' ,
91
94
named : 'never' ,
92
- asyncArrow : 'never' ,
95
+ } ] ,
96
+ 'vue/attributes-order' : [ 'error' , {
97
+ alphabetical : true ,
98
+ order : [
99
+ 'DEFINITION' ,
100
+ 'LIST_RENDERING' ,
101
+ 'CONDITIONALS' ,
102
+ 'RENDER_MODIFIERS' ,
103
+ 'GLOBAL' ,
104
+ [ 'UNIQUE' , 'SLOT' ] ,
105
+ 'TWO_WAY_BINDING' ,
106
+ 'OTHER_DIRECTIVES' ,
107
+ 'OTHER_ATTR' ,
108
+ 'EVENTS' ,
109
+ 'CONTENT' ,
110
+ ] ,
93
111
} ] ,
94
112
'vue/html-closing-bracket-newline' : 0 ,
95
113
'vue/html-indent' : 0 ,
96
114
'vue/html-self-closing' : 0 ,
97
115
'vue/max-attributes-per-line' : 0 ,
116
+ 'vue/no-multiple-template-root' : 0 ,
98
117
'vue/no-template-shadow' : 0 ,
118
+ 'vue/no-v-for-template-key' : 0 ,
99
119
'vue/no-v-html' : 0 ,
100
120
'vue/singleline-html-element-content-newline' : 0 ,
121
+ // 'vue/sort-keys': ['error', 'asc', {
122
+ // caseSensitive: true,
123
+ // ignoreChildrenOf: ['extend', 'model', 'defineProps'],
124
+ // ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
125
+ // minKeys: 2,
126
+ // natural: true,
127
+ // }],
128
+ 'vue/valid-template-root' : 0 ,
101
129
} ,
102
130
} ;
0 commit comments