1
1
{
2
2
"parser" : " @typescript-eslint/parser" ,
3
3
"root" : true ,
4
- "plugins" : [
5
- " switch-case" ,
6
- " simple-import-sort" ,
7
- " deprecation" ,
8
- " import" ,
9
- " prettier" ,
10
- " unused-imports"
11
- ],
4
+ "plugins" : [" switch-case" , " simple-import-sort" , " deprecation" , " import" , " prettier" , " unused-imports" ],
12
5
"extends" : [
13
6
" plugin:@typescript-eslint/recommended" ,
14
7
" plugin:node/recommended" ,
31
24
},
32
25
"settings" : {
33
26
"node" : {
34
- "allowModules" : [
35
- " express"
36
- ],
37
- "tryExtensions" : [
38
- " .js" ,
39
- " .json" ,
40
- " .ts"
41
- ]
27
+ "allowModules" : [" express" ],
28
+ "tryExtensions" : [" .js" , " .json" , " .ts" ]
42
29
},
43
30
"import/parsers" : {
44
- "@typescript-eslint/parser" : [
45
- " .ts"
46
- ]
31
+ "@typescript-eslint/parser" : [" .ts" ]
47
32
},
48
33
"import/resolver" : {
49
34
"node" : {
55
40
}
56
41
},
57
42
"rules" : {
58
- "node/no-unsupported-features/es-syntax" : [
59
- " error" ,
60
- {
61
- "ignores" : [
62
- " modules"
63
- ]
64
- }
65
- ],
43
+ "switch-case/newline-between-switch-case" : " off" ,
44
+ "node/no-deprecated-api" : " off" ,
45
+ "node/no-extraneous-require" : " off" ,
46
+ "node/no-missing-require" : " off" ,
47
+ "node/no-unpublished-require" : " off" ,
48
+ "node/no-unsupported-features/es-builtins" : " off" ,
49
+ "node/no-unsupported-features/es-syntax" : " off" ,
50
+ "node/no-unsupported-features/node-builtins" : " off" ,
51
+ "node/no-exports-assign" : " off" ,
66
52
"node/no-missing-import" : " off" ,
67
53
"node/no-unpublished-import" : " off" ,
68
54
"simple-import-sort/imports" : " error" ,
69
55
"simple-import-sort/exports" : " error" ,
70
56
"import/first" : " error" ,
71
57
"import/no-duplicates" : " error" ,
72
- "deprecation/deprecation" : " warn " ,
58
+ "deprecation/deprecation" : " off " ,
73
59
"@typescript-eslint/explicit-function-return-type" : " off" ,
74
60
"@typescript-eslint/explicit-module-boundary-types" : " off" ,
75
61
"import/no-unresolved" : " error" ,
96
82
"no-console" : [
97
83
" error" ,
98
84
{
99
- "allow" : [
100
- " info" ,
101
- " error"
102
- ]
85
+ "allow" : [" info" , " error" ]
103
86
}
104
87
],
105
88
"import/no-named-as-default" : " off" ,
110
93
"consistent-return" : " off" ,
111
94
"no-unused-vars" : " off" ,
112
95
"unused-imports/no-unused-imports" : " error" ,
113
- "unused-imports/no-unused-vars" : [
114
- " error" ,
115
- { "vars" : " all" , "varsIgnorePattern" : " ^_" , "args" : " after-used" , "argsIgnorePattern" : " ^_" }
116
- ],
96
+ "unused-imports/no-unused-vars" : [" error" , { "vars" : " all" , "varsIgnorePattern" : " ^_" , "args" : " after-used" , "argsIgnorePattern" : " ^_" }],
117
97
"@typescript-eslint/no-unused-vars" : " off" ,
118
98
"@typescript-eslint/ban-ts-comment" : " off" ,
119
99
"@typescript-eslint/no-explicit-any" : " off" ,
129
109
}
130
110
],
131
111
"import/no-named-as-default-member" : " off" ,
132
- "prefer-destructuring" : [" error" , {
133
- "array" : true ,
134
- "object" : true
135
- }]
112
+ "prefer-destructuring" : [
113
+ " error" ,
114
+ {
115
+ "array" : true ,
116
+ "object" : true
117
+ }
118
+ ]
136
119
},
137
120
"overrides" : [
138
121
{
139
- "files" : [
140
- " **/*.test.ts" ,
141
- " **/*.api-test.ts"
142
- ],
143
- "extends" : [
144
- " plugin:jest/recommended" ,
145
- " plugin:jest/style" ,
146
- " plugin:jest-formatting/strict"
147
- ],
122
+ "files" : [" **/*.test.ts" , " **/*.api-test.ts" ],
123
+ "extends" : [" plugin:jest/recommended" , " plugin:jest/style" , " plugin:jest-formatting/strict" ],
148
124
"rules" : {
149
125
"jest/expect-expect" : [
150
126
" warn" ,
151
127
{
152
- "assertFunctionNames" : [
153
- " expect" ,
154
- " request.**.expect" ,
155
- " **.expect\\ w+"
156
- ]
128
+ "assertFunctionNames" : [" expect" , " request.**.expect" , " **.expect\\ w+" ]
157
129
}
158
130
],
159
131
"@typescript-eslint/no-unsafe-assignment" : " off" ,
163
135
}
164
136
}
165
137
],
166
- "ignorePatterns" : [
167
- " node_modules/**" ,
168
- " .eslintrc.js" ,
169
- " dist/**" ,
170
- " coverage/**" ,
171
- " report/**"
172
- ]
173
- }
138
+ "ignorePatterns" : [" node_modules/**" , " .eslintrc.js" , " dist/**" , " coverage/**" , " report/**" ]
139
+ }
0 commit comments