Skip to content

Commit 762fdee

Browse files
committed
Update rules
1 parent a259c45 commit 762fdee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eslint.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,10 @@ export default defineConfig([
11451145
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2,
11461146
'@typescript-eslint/no-unnecessary-condition': [
11471147
2,
1148-
{ allowConstantLoopConditions: true, checkTypePredicates: true },
1148+
{
1149+
allowConstantLoopConditions: 'neverExceptWhileTrue',
1150+
checkTypePredicates: true,
1151+
},
11491152
],
11501153
'@typescript-eslint/strict-boolean-expressions': 2,
11511154
// Application-specific ordering is more relevant than type-specific

0 commit comments

Comments
 (0)