feat(eslint): Rule "yoda"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 02:35:57 +04:00
parent 273e1d7ed1
commit 0b1811525f
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -279,7 +279,7 @@
- [ ] "wrap-iife"
- [ ] "wrap-regex"
- [ ] "yield-star-spacing"
- [ ] "yoda"
- [X] "yoda"
## Import

View File

@ -549,5 +549,13 @@
{
"requireStringLiterals": true
}
],
"yoda": [
"error",
"never",
{
"exceptRange": false,
"onlyEquality": false
}
]
}