feat(eslint): Rule "prefer-arrow-callback"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
1191beb965
commit
ccea0635e4
@ -232,7 +232,7 @@
|
||||
- [ ] "operator-linebreak"
|
||||
- [ ] "padded-blocks"
|
||||
- [ ] "padding-line-between-statements"
|
||||
- [ ] "prefer-arrow-callback"
|
||||
- [X] "prefer-arrow-callback"
|
||||
- [X] "prefer-const"
|
||||
- [ ] "prefer-destructuring"
|
||||
- [ ] "prefer-exponentiation-operator"
|
||||
|
@ -388,6 +388,13 @@
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"prefer-arrow-callback": [
|
||||
"error",
|
||||
{
|
||||
"allowNamedFunctions": false,
|
||||
"allowUnboundThis": false
|
||||
}
|
||||
],
|
||||
"prefer-const": [
|
||||
"error",
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user