summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:44:27 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:44:27 +0300
commit91b3361884b78b5024bf7b4815009aab8e80fb89 (patch)
treeca2bd67a5752a33a2ed7684a47860814999c298e
parent5b981c978875f8dd9f4be091631f38783d973eff (diff)
downloadeslint-config-91b3361884b78b5024bf7b4815009aab8e80fb89.tar.xz
eslint-config-91b3361884b78b5024bf7b4815009aab8e80fb89.zip
feat(eslint): Rule "no-nested-ternary"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
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"
],