Skip to content

Commit 4b8199d

Browse files
fix: allowConstantLoopConditions
1 parent d5106d9 commit 4b8199d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/plugins/typescript.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ export const settings: Linter.Config = {
203203
},
204204
],
205205
"@typescript-eslint/no-throw-literal": "error",
206-
"@typescript-eslint/no-unnecessary-condition": "error",
206+
"@typescript-eslint/no-unnecessary-condition": [
207+
"error",
208+
{
209+
allowConstantLoopConditions: true,
210+
},
211+
],
207212
"@typescript-eslint/no-unnecessary-type-constraint": "error",
208213
"@typescript-eslint/no-unsafe-argument": "warn",
209214
"@typescript-eslint/no-unsafe-assignment": "warn",

0 commit comments

Comments
 (0)