@@ -21,24 +21,18 @@ module.exports = {
2121 ] ,
2222 "rules" : {
2323 "@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" ,
3025 "@typescript-eslint/await-thenable" : "warn" ,
31- "@typescript-eslint/ban-ts-comment" : "warn " ,
26+ "@typescript-eslint/ban-ts-comment" : "off " ,
3227 "@typescript-eslint/ban-types" : [
3328 "warn" ,
3429 {
3530 "types" : {
3631 "Object" : {
3732 "message" : "Avoid using the `Object` type. Did you mean `object`?"
3833 } ,
39- "Function" : {
40- "message" : "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
41- } ,
34+ "Function" : false ,
35+ "object" : false ,
4236 "Boolean" : {
4337 "message" : "Avoid using the `Boolean` type. Did you mean `boolean`?"
4438 } ,
@@ -54,16 +48,18 @@ module.exports = {
5448 }
5549 }
5650 ] ,
57- "@typescript-eslint/consistent-type-assertions" : "warn" ,
5851 "@typescript-eslint/consistent-type-definitions" : "warn" ,
59- "@typescript-eslint/dot-notation" : "warn " ,
52+ "@typescript-eslint/dot-notation" : "off " ,
6053 "@typescript-eslint/explicit-member-accessibility" : [
6154 "off" ,
6255 {
6356 "accessibility" : "explicit"
6457 }
6558 ] ,
66- "@typescript-eslint/explicit-module-boundary-types" : "warn" ,
59+ "@typescript-eslint/explicit-module-boundary-types" : [
60+ "warn" ,
61+ { "allowArgumentsExplicitlyTypedAsAny" : true }
62+ ] ,
6763 "@typescript-eslint/indent" : [
6864 "warn" ,
6965 2 ,
@@ -90,6 +86,13 @@ module.exports = {
9086 }
9187 }
9288 ] ,
89+ "@typescript-eslint/explicit-function-return-type" : [
90+ "error" ,
91+ {
92+ "allowExpressions" : true ,
93+ "allowDirectConstAssertionInArrowFunctions" : true
94+ }
95+ ] ,
9396 "@typescript-eslint/member-ordering" : "off" ,
9497 "@typescript-eslint/naming-convention" : "off" ,
9598 "@typescript-eslint/no-array-constructor" : "warn" ,
@@ -98,29 +101,33 @@ module.exports = {
98101 "@typescript-eslint/no-explicit-any" : "off" ,
99102 "@typescript-eslint/no-extra-non-null-assertion" : "warn" ,
100103 "@typescript-eslint/no-extra-semi" : "warn" ,
101- "@typescript-eslint/no-floating-promises" : "warn " ,
104+ "@typescript-eslint/no-floating-promises" : "off " ,
102105 "@typescript-eslint/no-for-in-array" : "warn" ,
103106 "@typescript-eslint/no-implied-eval" : "warn" ,
104- "@typescript-eslint/no-inferrable-types" : "warn " ,
107+ "@typescript-eslint/no-inferrable-types" : "off " ,
105108 "@typescript-eslint/no-misused-new" : "warn" ,
106- "@typescript-eslint/no-misused-promises" : "warn " ,
109+ "@typescript-eslint/no-misused-promises" : "off " ,
107110 "@typescript-eslint/no-namespace" : "warn" ,
108111 "@typescript-eslint/no-non-null-asserted-optional-chain" : "warn" ,
109112 "@typescript-eslint/no-non-null-assertion" : "warn" ,
110113 "@typescript-eslint/no-parameter-properties" : "off" ,
111114 "@typescript-eslint/no-this-alias" : "warn" ,
112115 "@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 " ,
115118 "@typescript-eslint/no-unsafe-member-access" : "off" ,
116- "@typescript-eslint/no-unsafe-return" : "warn " ,
119+ "@typescript-eslint/no-unsafe-return" : "off " ,
117120 "@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+ ] ,
119127 "@typescript-eslint/no-use-before-define" : "off" ,
120128 "@typescript-eslint/no-var-requires" : "warn" ,
121129 "@typescript-eslint/prefer-as-const" : "warn" ,
122130 "@typescript-eslint/prefer-for-of" : "warn" ,
123- "@typescript-eslint/prefer-function-type" : "warn" ,
124131 "@typescript-eslint/prefer-namespace-keyword" : "warn" ,
125132 "@typescript-eslint/prefer-regexp-exec" : "off" ,
126133 "@typescript-eslint/quotes" : [
@@ -131,10 +138,9 @@ module.exports = {
131138 ] ,
132139 "@typescript-eslint/require-await" : "warn" ,
133140 "@typescript-eslint/restrict-plus-operands" : "warn" ,
134- "@typescript-eslint/restrict-template-expressions" : "warn " ,
141+ "@typescript-eslint/restrict-template-expressions" : "off " ,
135142 "@typescript-eslint/semi" : [
136- "warn" ,
137- "always"
143+ "error" ,
138144 ] ,
139145 "@typescript-eslint/triple-slash-reference" : [
140146 "warn" ,
@@ -145,21 +151,16 @@ module.exports = {
145151 }
146152 ] ,
147153 "@typescript-eslint/type-annotation-spacing" : "warn" ,
148- "@typescript-eslint/unbound-method" : "warn " ,
154+ "@typescript-eslint/unbound-method" : "off " ,
149155 "@typescript-eslint/unified-signatures" : "warn" ,
150- "arrow-body-style" : "warn" ,
151- "arrow-parens" : [
152- "warn" ,
153- "always"
154- ] ,
156+ "arrow-parens" : "off" ,
155157 "brace-style" : [
156158 "off" ,
157159 "1tbs"
158160 ] ,
159161 "comma-dangle" : "off" ,
160162 "complexity" : "off" ,
161163 "constructor-super" : "warn" ,
162- "curly" : "warn" ,
163164 "eol-last" : "warn" ,
164165 "eqeqeq" : [
165166 "warn" ,
@@ -178,7 +179,7 @@ module.exports = {
178179 "Undefined" ,
179180 ] ,
180181 "id-match" : "warn" ,
181- "import/order" : "warn " ,
182+ "import/order" : "off " ,
182183 "jsdoc/check-alignment" : "warn" ,
183184 "jsdoc/check-indentation" : "warn" ,
184185 "jsdoc/newline-after-description" : "warn" ,
@@ -189,7 +190,6 @@ module.exports = {
189190 "max-len" : "off" ,
190191 "new-parens" : "warn" ,
191192 "no-array-constructor" : "off" ,
192- "no-bitwise" : "warn" ,
193193 "no-caller" : "warn" ,
194194 "no-cond-assign" : "warn" ,
195195 "no-console" : "off" ,
@@ -201,44 +201,26 @@ module.exports = {
201201 "no-fallthrough" : "off" ,
202202 "no-implied-eval" : "off" ,
203203 "no-invalid-this" : "off" ,
204- "no-multiple-empty-lines" : "warn" ,
204+ "no-multiple-empty-lines" : [ "error" , { "max" : 1 } ] ,
205205 "no-new-wrappers" : "warn" ,
206- "no-shadow" : [
207- "warn" ,
208- {
209- "hoist" : "all"
210- }
211- ] ,
212- "no-throw-literal" : "warn" ,
206+ "no-shadow" : "off" ,
213207 "no-trailing-spaces" : "warn" ,
214208 "no-undef-init" : "warn" ,
215- "no-underscore-dangle" : "warn " ,
209+ "no-underscore-dangle" : "off " ,
216210 "no-unsafe-finally" : "warn" ,
217211 "no-unused-labels" : "warn" ,
218- "no-unused-vars" : "off" ,
219212 "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" ,
227216 "prefer-rest-params" : "warn" ,
228217 "quote-props" : [
229218 "warn" ,
230219 "consistent-as-needed"
231220 ] ,
232221 "radix" : "warn" ,
233222 "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" ,
242224 "spaced-comment" : [
243225 "warn" ,
244226 "always" ,
0 commit comments