summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json11
2 files changed, 12 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index cd7f62c..06b4cdc 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -460,7 +460,7 @@
- [ ] "restrict-template-expressions"
- [ ] "return-await"
- [X] "semi"
-- [ ] "space-before-function-paren"
+- [X] "space-before-function-paren"
- [X] "strict-boolean-expressions"
- [ ] "switch-exhaustiveness-check"
- [ ] "triple-slash-reference"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 98c55db..c98552b 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -138,6 +138,14 @@
"omitLastInOneLineBlock": false
}
],
+ "@typescript-eslint/space-before-function-paren": [
+ "error",
+ {
+ "anonymous": "always",
+ "asyncArrow": "always",
+ "named": "never"
+ }
+ ],
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
@@ -199,5 +207,8 @@
],
"semi": [
"off"
+ ],
+ "space-before-function-paren": [
+ "off"
]
}