From e862c1c0a36c6d86c065b4b3322dc4af5339f988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Tue, 26 Nov 2024 11:49:05 +0100 Subject: [PATCH] relax arrow body enforcement --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 97ab8e7..5741335 100644 --- a/src/index.js +++ b/src/index.js @@ -55,7 +55,7 @@ export default [ }, rules: { // Core changes - "arrow-body-style": ["error", "always"], + "arrow-body-style": ["error", "as-needed"], curly: ["error", "all"], "default-case-last": "error", eqeqeq: ["error", "always", { null: "ignore" }], @@ -208,7 +208,6 @@ export default [ { classPropertiesAllowed: true, disallowPrototype: true, - returnStyle: "explicit", }, ],