config: add rules to eslint concerning arrow functions

This commit is contained in:
Xymorot 2019-10-13 01:12:22 +02:00
parent bc1a3ce1e6
commit e3a732b37c
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@
"no-shadow": "error",
"no-magic-numbers": ["error", { "ignore": [0, 1, -1] }],
"no-param-reassign": "error",
"prefer-template": "error"
"prefer-template": "error",
"prefer-arrow-callback": "error",
"arrow-body-style": ["error", "as-needed"]
},
"overrides": [
{