feat(eslint): Rule "yoda"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov committed 2020-02-14 02:35:57 +04:00
1 parent 273e1d7ed1
commit 0b1811525f
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@
- [ ] "wrap-iife"
- [ ] "wrap-regex"
- [ ] "yield-star-spacing"
- [ ] "yoda"
- [X] "yoda"
## Import
+8
View File
@@ -549,5 +549,13 @@
{
"requireStringLiterals": true
}
],
"yoda": [
"error",
"never",
{
"exceptRange": false,
"onlyEquality": false
}
]
}