aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:46:58 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:46:58 +0300
commit320dab004aa7fb166b73329a11872f8935135e4e (patch)
treef7246c3c79d7135daed183fdeb77ca4a35edb104 /src
parent91b3361884b78b5024bf7b4815009aab8e80fb89 (diff)
downloadeslint-config-320dab004aa7fb166b73329a11872f8935135e4e.tar.xz
eslint-config-320dab004aa7fb166b73329a11872f8935135e4e.zip
feat(eslint): Rule "no-unneeded-ternary"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/rules/default.json6
1 files changed, 6 insertions, 0 deletions
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",
{