feat(eslint): Rule "prefer-arrow-callback"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 02:11:16 +04:00
parent 1191beb965
commit ccea0635e4
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 8 additions and 1 deletions

View File

@ -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"

View File

@ -388,6 +388,13 @@
"error",
"never"
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": false,
"allowUnboundThis": false
}
],
"prefer-const": [
"error",
{