We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5106d9 commit 4b8199dCopy full SHA for 4b8199d
src/plugins/typescript.ts
@@ -203,7 +203,12 @@ export const settings: Linter.Config = {
203
},
204
],
205
"@typescript-eslint/no-throw-literal": "error",
206
- "@typescript-eslint/no-unnecessary-condition": "error",
+ "@typescript-eslint/no-unnecessary-condition": [
207
+ "error",
208
+ {
209
+ allowConstantLoopConditions: true,
210
+ },
211
+ ],
212
"@typescript-eslint/no-unnecessary-type-constraint": "error",
213
"@typescript-eslint/no-unsafe-argument": "warn",
214
"@typescript-eslint/no-unsafe-assignment": "warn",
0 commit comments