From e3a732b37c46dd20bd3cb8cc9172edd851b1beee Mon Sep 17 00:00:00 2001 From: Xymorot Date: Sun, 13 Oct 2019 01:12:22 +0200 Subject: [PATCH] config: add rules to eslint concerning arrow functions --- .eslintrc.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5518379..c0aa35d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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": [ {