aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 21:35:03 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 21:35:03 +0300
commit7a65b14bef98916dd729136e3b25649e8d57e6ac (patch)
tree17d72eb0c2481f46a658832ebb88ede803ea65a2
parent2cb3cc32edb324469fb0ee2d50d545808c7b2e94 (diff)
downloadeslint-config-7a65b14bef98916dd729136e3b25649e8d57e6ac.tar.xz
eslint-config-7a65b14bef98916dd729136e3b25649e8d57e6ac.zip
feat(eslint): Rule "no-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 73ad9c8..19b0e54 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -189,7 +189,7 @@
- [ ] "no-sync"
- [X] "no-tabs"
- [ ] "no-template-curly-in-string"
-- [ ] "no-ternary"
+- [X] "no-ternary"
- [ ] "no-this-before-super"
- [ ] "no-throw-literal"
- [ ] "no-trailing-spaces"
diff --git a/src/rules/default.json b/src/rules/default.json
index 8661d4d..f8b704d 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -135,6 +135,9 @@
"allowIndentationTabs": true
}
],
+ "no-ternary": [
+ "off"
+ ],
"no-unused-vars": [
"error",
{