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-iife"
|
||||||
- [ ] "wrap-regex"
|
- [ ] "wrap-regex"
|
||||||
- [ ] "yield-star-spacing"
|
- [ ] "yield-star-spacing"
|
||||||
- [ ] "yoda"
|
- [X] "yoda"
|
||||||
|
|
||||||
## Import
|
## Import
|
||||||
|
|
||||||
|
@ -549,5 +549,13 @@
|
|||||||
{
|
{
|
||||||
"requireStringLiterals": true
|
"requireStringLiterals": true
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"yoda": [
|
||||||
|
"error",
|
||||||
|
"never",
|
||||||
|
{
|
||||||
|
"exceptRange": false,
|
||||||
|
"onlyEquality": false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user