config: add rules to eslint concerning arrow functions
This commit is contained in:
parent
bc1a3ce1e6
commit
e3a732b37c
|
@ -13,7 +13,9 @@
|
||||||
"no-shadow": "error",
|
"no-shadow": "error",
|
||||||
"no-magic-numbers": ["error", { "ignore": [0, 1, -1] }],
|
"no-magic-numbers": ["error", { "ignore": [0, 1, -1] }],
|
||||||
"no-param-reassign": "error",
|
"no-param-reassign": "error",
|
||||||
"prefer-template": "error"
|
"prefer-template": "error",
|
||||||
|
"prefer-arrow-callback": "error",
|
||||||
|
"arrow-body-style": ["error", "as-needed"]
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue