aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:15:11 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:15:11 +0300
commit90014ad8f6e70454d40614ab4ce53788ff558b7e (patch)
tree5b882cdbfae4934d9cf0552fc22cff91b76d402b
parent86f818d0b61805ca042724110317386e8923ef9a (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/eslint.json8
2 files changed, 9 insertions, 1 deletions
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"
],