From 90014ad8f6e70454d40614ab4ce53788ff558b7e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:15:11 +0400 Subject: feat(eslint): Rule "space-before-function-paren" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 10dea49..dc707a9 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -261,7 +261,7 @@ - [X] "sort-keys" - [X] "sort-vars" - [ ] "space-before-blocks" -- [ ] "space-before-function-paren" +- [X] "space-before-function-paren" - [ ] "space-in-parens" - [ ] "space-infix-ops" - [ ] "space-unary-ops" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index 4ae19b3..adb6db2 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -190,6 +190,14 @@ "ignoreCase": false } ], + "space-before-function-paren": [ + "error", + { + "anonymous": "always", + "asyncArrow": "always", + "named": "never" + } + ], "valid-jsdoc": [ "off" ], -- cgit v1.2.3