diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 21:35:03 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 21:35:03 +0300 |
commit | 7a65b14bef98916dd729136e3b25649e8d57e6ac (patch) | |
tree | 17d72eb0c2481f46a658832ebb88ede803ea65a2 | |
parent | 2cb3cc32edb324469fb0ee2d50d545808c7b2e94 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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", { |