@@ -44,37 +44,39 @@ module.exports = {
4444 ] ,
4545 'func-names' : [ 'error' , 'never' ] ,
4646 'function-paren-newline' : 0 ,
47- 'import/no-self-import' : 0 ,
48- 'import/no-extraneous-dependencies' : 0 ,
4947 'implicit-arrow-linebreak' : [ 'warn' , 'beside' ] ,
48+ 'import/no-extraneous-dependencies' : 0 ,
49+ 'import/no-self-import' : 0 ,
5050 indent : [ 2 , 'tab' , { SwitchCase : 1 } ] ,
51- 'no-tabs' : [ 0 , { allowIndentationTabs : true } ] ,
5251 'linebreak-style' : 0 ,
5352 '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',
5655 'no-debugger' : 0 ,
56+ 'no-else-return' : [ 'error' , { allowElseIf : true } ] ,
5757 'no-new' : 0 ,
58- 'no-unused-vars' : 1 ,
59- 'no-use-before-define' : 0 ,
60- 'no-useless-escape' : 0 ,
6158 'no-param-reassign' : [
6259 'error' , {
63- props : true ,
6460 ignorePropertyModificationsFor : [ 'field' , 'model' , 'el' , 'item' , 'state' , 'Vue' , 'vue' ] ,
61+ props : true ,
6562 } ,
6663 ] ,
64+ 'no-plusplus' : [
65+ 'error' , { allowForLoopAfterthoughts : true } ,
66+ ] ,
67+ 'no-tabs' : [ 0 , { allowIndentationTabs : true } ] ,
68+ 'no-undef' : 0 ,
6769 'no-underscore-dangle' : [
6870 'error' , {
6971 allow : [ '_data' ] ,
7072 allowAfterThis : true ,
7173 } ,
7274 ] ,
73- 'no-plusplus ' : [
74- 'error' , { allowForLoopAfterthoughts : true } ,
75- ] ,
75+ 'no-unused-vars ' : 1 ,
76+ 'no-use-before-define' : 0 ,
77+ 'no-useless-escape' : 0 ,
7678 'object-curly-newline' : [ 'error' , {
77- ObjectPattern : { multiline : false } ,
79+ ObjectPattern : { multiline : true } ,
7880 } ] ,
7981 'operator-linebreak' : [ 'error' , 'after' ] ,
8082 'prefer-destructuring' : [
@@ -88,15 +90,41 @@ module.exports = {
8890 ] ,
8991 'space-before-function-paren' : [ 'error' , {
9092 anonymous : 'never' ,
93+ asyncArrow : 'always' ,
9194 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+ ] ,
93111 } ] ,
94112 'vue/html-closing-bracket-newline' : 0 ,
95113 'vue/html-indent' : 0 ,
96114 'vue/html-self-closing' : 0 ,
97115 'vue/max-attributes-per-line' : 0 ,
116+ 'vue/no-multiple-template-root' : 0 ,
98117 'vue/no-template-shadow' : 0 ,
118+ 'vue/no-v-for-template-key' : 0 ,
99119 'vue/no-v-html' : 0 ,
100120 '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 ,
101129 } ,
102130} ;
0 commit comments