feat(eslint): Rule "yoda"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
273e1d7ed1
commit
0b1811525f
@ -279,7 +279,7 @@
|
||||
- [ ] "wrap-iife"
|
||||
- [ ] "wrap-regex"
|
||||
- [ ] "yield-star-spacing"
|
||||
- [ ] "yoda"
|
||||
- [X] "yoda"
|
||||
|
||||
## Import
|
||||
|
||||
|
@ -549,5 +549,13 @@
|
||||
{
|
||||
"requireStringLiterals": true
|
||||
}
|
||||
],
|
||||
"yoda": [
|
||||
"error",
|
||||
"never",
|
||||
{
|
||||
"exceptRange": false,
|
||||
"onlyEquality": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user