From d38eda8aaa201a908988738e5bfec750ddc604a1 Mon Sep 17 00:00:00 2001 From: sekretk Date: Wed, 17 Nov 2021 11:32:41 +0300 Subject: [PATCH] parentheses for arrow function argument avoid prettier-eslint collision By default prettier set parentheses around arrow function [type def](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/prettier/index.d.ts#L168) so to avoid conflicts need to remove rule from es-lint --- packages/lint/.eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lint/.eslintrc.json b/packages/lint/.eslintrc.json index ad89c19f..a4a648df 100644 --- a/packages/lint/.eslintrc.json +++ b/packages/lint/.eslintrc.json @@ -57,7 +57,7 @@ "@typescript-eslint/type-annotation-spacing": "error", "@typescript-eslint/unified-signatures": "error", "jsdoc/check-alignment": "error", - "arrow-parens": ["error", "as-needed"], + "arrow-parens": ["error"], "spaced-comment": "off", "capitalized-comments": "off", "comma-dangle": "off",