@@ -21,24 +21,18 @@ module.exports = {
21
21
] ,
22
22
"rules" : {
23
23
"@typescript-eslint/adjacent-overload-signatures" : "warn" ,
24
- "@typescript-eslint/array-type" : [
25
- "warn" ,
26
- {
27
- "default" : "array-simple"
28
- }
29
- ] ,
24
+ "@typescript-eslint/array-type" : "off" ,
30
25
"@typescript-eslint/await-thenable" : "warn" ,
31
- "@typescript-eslint/ban-ts-comment" : "warn " ,
26
+ "@typescript-eslint/ban-ts-comment" : "off " ,
32
27
"@typescript-eslint/ban-types" : [
33
28
"warn" ,
34
29
{
35
30
"types" : {
36
31
"Object" : {
37
32
"message" : "Avoid using the `Object` type. Did you mean `object`?"
38
33
} ,
39
- "Function" : {
40
- "message" : "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
41
- } ,
34
+ "Function" : false ,
35
+ "object" : false ,
42
36
"Boolean" : {
43
37
"message" : "Avoid using the `Boolean` type. Did you mean `boolean`?"
44
38
} ,
@@ -54,16 +48,18 @@ module.exports = {
54
48
}
55
49
}
56
50
] ,
57
- "@typescript-eslint/consistent-type-assertions" : "warn" ,
58
51
"@typescript-eslint/consistent-type-definitions" : "warn" ,
59
- "@typescript-eslint/dot-notation" : "warn " ,
52
+ "@typescript-eslint/dot-notation" : "off " ,
60
53
"@typescript-eslint/explicit-member-accessibility" : [
61
54
"off" ,
62
55
{
63
56
"accessibility" : "explicit"
64
57
}
65
58
] ,
66
- "@typescript-eslint/explicit-module-boundary-types" : "warn" ,
59
+ "@typescript-eslint/explicit-module-boundary-types" : [
60
+ "warn" ,
61
+ { "allowArgumentsExplicitlyTypedAsAny" : true }
62
+ ] ,
67
63
"@typescript-eslint/indent" : [
68
64
"warn" ,
69
65
2 ,
@@ -90,6 +86,13 @@ module.exports = {
90
86
}
91
87
}
92
88
] ,
89
+ "@typescript-eslint/explicit-function-return-type" : [
90
+ "error" ,
91
+ {
92
+ "allowExpressions" : true ,
93
+ "allowDirectConstAssertionInArrowFunctions" : true
94
+ }
95
+ ] ,
93
96
"@typescript-eslint/member-ordering" : "off" ,
94
97
"@typescript-eslint/naming-convention" : "off" ,
95
98
"@typescript-eslint/no-array-constructor" : "warn" ,
@@ -98,29 +101,33 @@ module.exports = {
98
101
"@typescript-eslint/no-explicit-any" : "off" ,
99
102
"@typescript-eslint/no-extra-non-null-assertion" : "warn" ,
100
103
"@typescript-eslint/no-extra-semi" : "warn" ,
101
- "@typescript-eslint/no-floating-promises" : "warn " ,
104
+ "@typescript-eslint/no-floating-promises" : "off " ,
102
105
"@typescript-eslint/no-for-in-array" : "warn" ,
103
106
"@typescript-eslint/no-implied-eval" : "warn" ,
104
- "@typescript-eslint/no-inferrable-types" : "warn " ,
107
+ "@typescript-eslint/no-inferrable-types" : "off " ,
105
108
"@typescript-eslint/no-misused-new" : "warn" ,
106
- "@typescript-eslint/no-misused-promises" : "warn " ,
109
+ "@typescript-eslint/no-misused-promises" : "off " ,
107
110
"@typescript-eslint/no-namespace" : "warn" ,
108
111
"@typescript-eslint/no-non-null-asserted-optional-chain" : "warn" ,
109
112
"@typescript-eslint/no-non-null-assertion" : "warn" ,
110
113
"@typescript-eslint/no-parameter-properties" : "off" ,
111
114
"@typescript-eslint/no-this-alias" : "warn" ,
112
115
"@typescript-eslint/no-unnecessary-type-assertion" : "warn" ,
113
- "@typescript-eslint/no-unsafe-assignment" : "warn " ,
114
- "@typescript-eslint/no-unsafe-call" : "warn " ,
116
+ "@typescript-eslint/no-unsafe-assignment" : "off " ,
117
+ "@typescript-eslint/no-unsafe-call" : "off " ,
115
118
"@typescript-eslint/no-unsafe-member-access" : "off" ,
116
- "@typescript-eslint/no-unsafe-return" : "warn " ,
119
+ "@typescript-eslint/no-unsafe-return" : "off " ,
117
120
"@typescript-eslint/no-unused-expressions" : "warn" ,
118
- "@typescript-eslint/no-unused-vars" : "warn" ,
121
+ "@typescript-eslint/no-unused-vars" : [
122
+ "warn" ,
123
+ {
124
+ "args" : "after-used" , "argsIgnorePattern" : "^_"
125
+ }
126
+ ] ,
119
127
"@typescript-eslint/no-use-before-define" : "off" ,
120
128
"@typescript-eslint/no-var-requires" : "warn" ,
121
129
"@typescript-eslint/prefer-as-const" : "warn" ,
122
130
"@typescript-eslint/prefer-for-of" : "warn" ,
123
- "@typescript-eslint/prefer-function-type" : "warn" ,
124
131
"@typescript-eslint/prefer-namespace-keyword" : "warn" ,
125
132
"@typescript-eslint/prefer-regexp-exec" : "off" ,
126
133
"@typescript-eslint/quotes" : [
@@ -131,10 +138,9 @@ module.exports = {
131
138
] ,
132
139
"@typescript-eslint/require-await" : "warn" ,
133
140
"@typescript-eslint/restrict-plus-operands" : "warn" ,
134
- "@typescript-eslint/restrict-template-expressions" : "warn " ,
141
+ "@typescript-eslint/restrict-template-expressions" : "off " ,
135
142
"@typescript-eslint/semi" : [
136
- "warn" ,
137
- "always"
143
+ "error" ,
138
144
] ,
139
145
"@typescript-eslint/triple-slash-reference" : [
140
146
"warn" ,
@@ -145,21 +151,16 @@ module.exports = {
145
151
}
146
152
] ,
147
153
"@typescript-eslint/type-annotation-spacing" : "warn" ,
148
- "@typescript-eslint/unbound-method" : "warn " ,
154
+ "@typescript-eslint/unbound-method" : "off " ,
149
155
"@typescript-eslint/unified-signatures" : "warn" ,
150
- "arrow-body-style" : "warn" ,
151
- "arrow-parens" : [
152
- "warn" ,
153
- "always"
154
- ] ,
156
+ "arrow-parens" : "off" ,
155
157
"brace-style" : [
156
158
"off" ,
157
159
"1tbs"
158
160
] ,
159
161
"comma-dangle" : "off" ,
160
162
"complexity" : "off" ,
161
163
"constructor-super" : "warn" ,
162
- "curly" : "warn" ,
163
164
"eol-last" : "warn" ,
164
165
"eqeqeq" : [
165
166
"warn" ,
@@ -178,7 +179,7 @@ module.exports = {
178
179
"Undefined" ,
179
180
] ,
180
181
"id-match" : "warn" ,
181
- "import/order" : "warn " ,
182
+ "import/order" : "off " ,
182
183
"jsdoc/check-alignment" : "warn" ,
183
184
"jsdoc/check-indentation" : "warn" ,
184
185
"jsdoc/newline-after-description" : "warn" ,
@@ -189,7 +190,6 @@ module.exports = {
189
190
"max-len" : "off" ,
190
191
"new-parens" : "warn" ,
191
192
"no-array-constructor" : "off" ,
192
- "no-bitwise" : "warn" ,
193
193
"no-caller" : "warn" ,
194
194
"no-cond-assign" : "warn" ,
195
195
"no-console" : "off" ,
@@ -201,44 +201,26 @@ module.exports = {
201
201
"no-fallthrough" : "off" ,
202
202
"no-implied-eval" : "off" ,
203
203
"no-invalid-this" : "off" ,
204
- "no-multiple-empty-lines" : "warn" ,
204
+ "no-multiple-empty-lines" : [ "error" , { "max" : 1 } ] ,
205
205
"no-new-wrappers" : "warn" ,
206
- "no-shadow" : [
207
- "warn" ,
208
- {
209
- "hoist" : "all"
210
- }
211
- ] ,
212
- "no-throw-literal" : "warn" ,
206
+ "no-shadow" : "off" ,
213
207
"no-trailing-spaces" : "warn" ,
214
208
"no-undef-init" : "warn" ,
215
- "no-underscore-dangle" : "warn " ,
209
+ "no-underscore-dangle" : "off " ,
216
210
"no-unsafe-finally" : "warn" ,
217
211
"no-unused-labels" : "warn" ,
218
- "no-unused-vars" : "off" ,
219
212
"no-var" : "warn" ,
220
- "object-shorthand" : [ "warn" , "never" ] ,
221
- "one-var" : [
222
- "warn" ,
223
- "never"
224
- ] ,
225
- "prefer-arrow/prefer-arrow-functions" : "off" ,
226
- "prefer-const" : "warn" ,
213
+ "object-shorthand" : "off" ,
214
+ "one-var" : "off" ,
215
+ "prefer-const" : "off" ,
227
216
"prefer-rest-params" : "warn" ,
228
217
"quote-props" : [
229
218
"warn" ,
230
219
"consistent-as-needed"
231
220
] ,
232
221
"radix" : "warn" ,
233
222
"require-await" : "off" ,
234
- "space-before-function-paren" : [
235
- "warn" ,
236
- {
237
- "anonymous" : "never" ,
238
- "asyncArrow" : "always" ,
239
- "named" : "never"
240
- }
241
- ] ,
223
+ "space-before-function-paren" : "off" ,
242
224
"spaced-comment" : [
243
225
"warn" ,
244
226
"always" ,
0 commit comments