feat(eslint): Rule "no-unneeded-ternary"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 23:46:58 +04:00
parent 91b3361884
commit 320dab004a
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -199,7 +199,7 @@
- [X] "no-underscore-dangle"
- [ ] "no-unexpected-multiline"
- [ ] "no-unmodified-loop-condition"
- [ ] "no-unneeded-ternary"
- [X] "no-unneeded-ternary"
- [ ] "no-unreachable"
- [ ] "no-unsafe-finally"
- [ ] "no-unsafe-negation"

View File

@ -254,6 +254,12 @@
"enforceInMethodNames": false
}
],
"no-unneeded-ternary": [
"error",
{
"defaultAssignment": true
}
],
"no-unused-vars": [
"error",
{