From 320dab004aa7fb166b73329a11872f8935135e4e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:46:58 +0400 Subject: feat(eslint): Rule "no-unneeded-ternary" Signed-off-by: Valentin Popov --- src/rules/default.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/rules/default.json') diff --git a/src/rules/default.json b/src/rules/default.json index dc3a90a..7a6f64b 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -254,6 +254,12 @@ "enforceInMethodNames": false } ], + "no-unneeded-ternary": [ + "error", + { + "defaultAssignment": true + } + ], "no-unused-vars": [ "error", { -- cgit v1.2.3