From 288c455b7a278ef472a0e54c2430aa047e490887 Mon Sep 17 00:00:00 2001 From: Allard Oelen Date: Mon, 26 Feb 2024 11:53:39 +0100 Subject: [PATCH] chore: require parentheses for arrow function arguments --- .eslintrc.json | 2 +- .prettierrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3301aa1e7..6be2f4292 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -49,7 +49,7 @@ "ignoreComments": true } ], - "arrow-parens": [2, "as-needed"], + "arrow-parens": [1, "always"], "no-param-reassign": [ 1, { diff --git a/.prettierrc b/.prettierrc index 4be3935f7..cbcca3db2 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,5 @@ "tabWidth": 4, "endOfLine": "auto", "trailingComma": "all", - "arrowParens": "avoid" + "arrowParens": "always" }