diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 22:44:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 22:44:27 +0300 |
commit | 91b3361884b78b5024bf7b4815009aab8e80fb89 (patch) | |
tree | ca2bd67a5752a33a2ed7684a47860814999c298e | |
parent | 5b981c978875f8dd9f4be091631f38783d973eff (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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" ], |