From 7a65b14bef98916dd729136e3b25649e8d57e6ac Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 22:35:03 +0400 Subject: [PATCH] feat(eslint): Rule "no-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 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", {