From e0ae9a9e73da22b8210cb1d190fdae776e63f820 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 10 Aug 2021 21:59:15 +0800 Subject: [PATCH] improve space-before-function-paren --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9e0eb4574..33d49f0d4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -36,7 +36,11 @@ module.exports = { "no-multi-spaces": ["error", { ignoreEOLComments: true, }], - "space-before-function-paren": ["error", "always"], + "space-before-function-paren": ["error", { + "anonymous": "always", + "named": "never", + "asyncArrow": "always" + }], "curly": "error", "object-curly-spacing": ["error", "always"], "object-curly-newline": "off",