diff options
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -92,7 +92,7 @@ - [ ] "no-confusing-arrow" - [X] "no-console" - [ ] "no-const-assign" -- [ ] "no-constant-condition" +- [X] "no-constant-condition" - [ ] "no-constructor-return" - [ ] "no-continue" - [ ] "no-control-regex" diff --git a/src/rules/default.json b/src/rules/default.json index 963e9dc..6df0efe 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -194,6 +194,12 @@ "no-console": [ "warn" ], + "no-constant-condition": [ + "error", + { + "checkLoops": true + } + ], "no-debugger": [ "warn" ], |