@@ -61,6 +61,7 @@ export const settings: Linter.Config = {
61
61
accessibility : "explicit" ,
62
62
} ,
63
63
] ,
64
+ "@typescript-eslint/explicit‑module‑boundary‑types" : "off" ,
64
65
"@typescript-eslint/indent" : [ "error" , 2 ] ,
65
66
"@typescript-eslint/naming-convention" : [
66
67
"error" ,
@@ -108,7 +109,9 @@ export const settings: Linter.Config = {
108
109
] ,
109
110
"@typescript-eslint/no-invalid-void-type" : "error" ,
110
111
"@typescript-eslint/no-loop-func" : "error" ,
112
+ "@typescript-eslint/no-loss-of-precision" : "error" ,
111
113
"@typescript-eslint/no-non-null-assertion" : "off" ,
114
+ // "node" plugin will handle this.
112
115
"@typescript-eslint/no-require-imports" : "off" ,
113
116
"@typescript-eslint/no-shadow" : [
114
117
"warn" ,
@@ -121,10 +124,11 @@ export const settings: Linter.Config = {
121
124
"@typescript-eslint/no-throw-literal" : "error" ,
122
125
"@typescript-eslint/no-unnecessary-condition" : "error" ,
123
126
"@typescript-eslint/no-unnecessary-type-constraint" : "error" ,
124
- "@typescript-eslint/no-unsafe-assignment" : "off" ,
125
- "@typescript-eslint/no-unsafe-call" : "off" ,
126
- "@typescript-eslint/no-unsafe-member-access" : "off" ,
127
- "@typescript-eslint/no-unsafe-return" : "off" ,
127
+ "@typescript-eslint/no-unsafe-argument" : "warn" ,
128
+ "@typescript-eslint/no-unsafe-assignment" : "warn" ,
129
+ "@typescript-eslint/no-unsafe-call" : "warn" ,
130
+ "@typescript-eslint/no-unsafe-member-access" : "warn" ,
131
+ "@typescript-eslint/no-unsafe-return" : "warn" ,
128
132
"@typescript-eslint/no-unused-expressions" : [
129
133
"error" ,
130
134
{
@@ -133,23 +137,16 @@ export const settings: Linter.Config = {
133
137
allowTernary : true ,
134
138
} ,
135
139
] ,
140
+ "no-unused-vars" : "off" ,
136
141
"@typescript-eslint/no-unused-vars" : [
137
- "off " ,
142
+ "warn " ,
138
143
{
139
- args : "after-used" ,
140
- argsIgnorePattern : "^_" ,
144
+ args : "none" ,
141
145
caughtErrors : "none" ,
142
146
ignoreRestSiblings : true ,
143
147
vars : "all" ,
144
148
} ,
145
149
] ,
146
- "@typescript-eslint/no-unused-vars-experimental" : [
147
- "warn" ,
148
- {
149
- ignoreArgsIfArgsAfterAreUsed : true ,
150
- ignoredNamesRegex : "^_" ,
151
- } ,
152
- ] ,
153
150
"@typescript-eslint/no-use-before-define" : [
154
151
"error" ,
155
152
{
@@ -159,7 +156,7 @@ export const settings: Linter.Config = {
159
156
variables : true ,
160
157
} ,
161
158
] ,
162
- "@typescript-eslint/no-var-requires" : "off " ,
159
+ "@typescript-eslint/no-var-requires" : "error " ,
163
160
"@typescript-eslint/non-nullable-type-assertion-style" : "error" ,
164
161
"@typescript-eslint/object-curly-spacing" : [ "error" , "always" ] ,
165
162
"@typescript-eslint/prefer-for-of" : "warn" ,
@@ -174,6 +171,7 @@ export const settings: Linter.Config = {
174
171
ignoreInferredTypes : true ,
175
172
} ,
176
173
] ,
174
+ "@typescript-eslint/prefer-regexp-exec" : "error" ,
177
175
"@typescript-eslint/prefer-string-starts-ends-with" : "warn" ,
178
176
"@typescript-eslint/prefer-ts-expect-error" : "warn" ,
179
177
"@typescript-eslint/promise-function-async" : "error" ,
@@ -215,13 +213,4 @@ export const settings: Linter.Config = {
215
213
] ,
216
214
"@typescript-eslint/unified-signatures" : "warn" ,
217
215
} ,
218
-
219
- overrides : [
220
- {
221
- files : [ "**/*.ts" , "**/*.tsx" ] ,
222
- rules : {
223
- "@typescript-eslint/no-var-requires" : "error" ,
224
- } ,
225
- } ,
226
- ] ,
227
216
} ;
0 commit comments