diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 15:15:11 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 15:15:11 +0300 |
commit | 90014ad8f6e70454d40614ab4ce53788ff558b7e (patch) | |
tree | 5b882cdbfae4934d9cf0552fc22cff91b76d402b | |
parent | 86f818d0b61805ca042724110317386e8923ef9a (diff) | |
download | eslint-config-90014ad8f6e70454d40614ab4ce53788ff558b7e.tar.xz eslint-config-90014ad8f6e70454d40614ab4ce53788ff558b7e.zip |
feat(eslint): Rule "space-before-function-paren"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" ], |