From 91b3361884b78b5024bf7b4815009aab8e80fb89 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:44:27 +0400 Subject: feat(eslint): Rule "no-nested-ternary" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 011ef65..a484a05 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -150,7 +150,7 @@ - [X] "no-native-reassign" - [ ] "no-negated-condition" - [X] "no-negated-in-lhs" -- [ ] "no-nested-ternary" +- [X] "no-nested-ternary" - [ ] "no-new" - [ ] "no-new-func" - [ ] "no-new-object" diff --git a/src/rules/default.json b/src/rules/default.json index dd4523a..dc3a90a 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -227,6 +227,9 @@ "no-negated-in-lhs": [ "off" ], + "no-nested-ternary": [ + "error" + ], "no-spaced-func": [ "off" ], -- cgit v1.2.3