From 228ad3183cdbed0b9fde2a1baa589416db530225 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 01:20:54 +0400 Subject: feat(eslint): Rule "no-constant-condition" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 1e6ec8a..e78818c 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -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" ], -- cgit v1.2.3