@@ -6,43 +6,108 @@ module.exports = {
6
6
ecmaVersion : 6 ,
7
7
ecmaFeatures : {
8
8
jsx : true ,
9
- tsx : true
10
- }
9
+ tsx : true ,
10
+ } ,
11
11
} ,
12
12
env : {
13
13
browser : true ,
14
14
node : true ,
15
15
jest : true ,
16
- es6 : true
16
+ es6 : true ,
17
17
} ,
18
18
plugins : [ '@typescript-eslint' ] ,
19
19
extends : [
20
20
'plugin:@typescript-eslint/recommended' ,
21
21
'plugin:vue/vue3-recommended' ,
22
22
'plugin:import/recommended' ,
23
- 'plugin:import/typescript'
23
+ 'plugin:import/typescript' ,
24
24
] ,
25
25
rules : {
26
- quotes : [ 'error' , 'single' , { avoidEscape : true , allowTemplateLiterals : true } ] ,
27
- 'no-undef' : 2 ,
28
- 'vue/max-attributes-per-line' : 'off' ,
29
- 'vue/no-multiple-template-root' : 'off' ,
30
- 'vue/script-setup-uses-vars' : 'off' ,
31
- '@typescript-eslint/no-explicit-any' : 'off' ,
26
+ 'no-useless-constructor' : 'off' ,
27
+ 'no-useless-concat' : 'off' ,
28
+ 'max-params' : 'off' ,
29
+ '@typescript-eslint/no-useless-constructor' : 'off' ,
30
+ '@typescript-eslint/no-parameter-properties' : 'off' ,
31
+ '@typescript-eslint/no-require-imports' : 'off' ,
32
+ '@typescript-eslint/no-var-requires' : 'off' ,
33
+ complexity : [
34
+ 'error' ,
35
+ {
36
+ max : 40 ,
37
+ } ,
38
+ ] ,
39
+ curly : 'error' ,
40
+ 'eol-last' : 'error' ,
41
+ eqeqeq : [ 'error' , 'smart' ] ,
42
+ 'max-len' : [ 'error' , { code : 140 } ] ,
43
+ 'no-console' : [
44
+ 'error' ,
45
+ {
46
+ allow : [
47
+ 'log' ,
48
+ 'warn' ,
49
+ 'dir' ,
50
+ 'timeLog' ,
51
+ 'assert' ,
52
+ 'clear' ,
53
+ 'count' ,
54
+ 'countReset' ,
55
+ 'group' ,
56
+ 'groupEnd' ,
57
+ 'table' ,
58
+ 'dirxml' ,
59
+ 'error' ,
60
+ 'groupCollapsed' ,
61
+ 'Console' ,
62
+ 'profile' ,
63
+ 'profileEnd' ,
64
+ 'timeStamp' ,
65
+ 'context' ,
66
+ ] ,
67
+ } ,
68
+ ] ,
69
+ 'no-multiple-empty-lines' : 'error' ,
70
+ 'no-shadow' : 'off' ,
71
+ 'no-trailing-spaces' : 'error' ,
72
+ 'no-unused-labels' : 'error' ,
73
+ 'no-use-before-define' : 'error' ,
74
+ 'no-var' : 'error' ,
75
+ 'prefer-const' : 'error' ,
76
+ semi : 'error' ,
77
+ 'space-in-parens' : [ 'error' , 'never' ] ,
78
+ 'spaced-comment' : [ 'error' , 'always' ] ,
79
+ '@typescript-eslint/dot-notation' : 'off' ,
80
+ '@typescript-eslint/indent' : [
81
+ 'error' ,
82
+ 2 ,
83
+ { FunctionDeclaration : { parameters : 'first' } , FunctionExpression : { parameters : 'first' } } ,
84
+ ] ,
32
85
'@typescript-eslint/member-delimiter-style' : [
33
86
'error' ,
34
87
{
35
88
multiline : {
36
- delimiter : 'none ' ,
37
- requireLast : false
89
+ delimiter : 'semi ' ,
90
+ requireLast : true ,
38
91
} ,
39
92
singleline : {
40
93
delimiter : 'semi' ,
41
- requireLast : true
42
- }
43
- }
94
+ requireLast : false ,
95
+ } ,
96
+ } ,
44
97
] ,
45
- 'no-unused-vars' : 'off' ,
46
- '@typescript-eslint/no-unused-vars' : [ 'error' ]
47
- }
48
- }
98
+ '@typescript-eslint/no-misused-new' : 'error' ,
99
+ '@typescript-eslint/no-non-null-assertion' : 'error' ,
100
+ '@typescript-eslint/prefer-function-type' : 'error' ,
101
+ '@typescript-eslint/semi' : [ 'error' , 'always' ] ,
102
+ '@typescript-eslint/type-annotation-spacing' : 'error' ,
103
+ '@typescript-eslint/unified-signatures' : 'error' ,
104
+ '@typescript-eslint/no-shadow' : 'error' ,
105
+ 'prefer-promise-reject-errors' : 'off' ,
106
+ 'max-nested-callbacks' : [ 'error' , 6 ] ,
107
+ '@typescript-eslint/no-this-alias' : 'off' ,
108
+ 'accessor-pairs' : 'off' ,
109
+ 'max-depth' : 'off' ,
110
+ '@typescript-eslint/member-ordering' : 'off' ,
111
+ 'array-callback-return' : 'off' ,
112
+ } ,
113
+ } ;
0 commit comments