From ebde1f275666d405c87a9403676339c9c8f5193d Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 16 Feb 2020 19:16:23 +0100 Subject: [PATCH] Update eslint rules --- .eslintrc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7c05455..61b0213 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -253,7 +253,10 @@ module.exports = { "error", "always" ], - "object-shorthand": "off", + "object-shorthand": [ + "error", + "consistent-as-needed" + ], "one-var": "off", "one-var-declaration-per-line": [ "error", @@ -266,7 +269,7 @@ module.exports = { "operator-linebreak": "error", "padded-blocks": "off", "padding-line-between-statements": "error", - "prefer-arrow-callback": "off", + "prefer-arrow-callback": "error", "prefer-const": "error", "prefer-destructuring": "off", "prefer-named-capture-group": "off",