aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json12
2 files changed, 13 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index c7c39b6..863ded8 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -410,6 +410,6 @@
- [ ] "switch-exhaustiveness-check"
- [ ] "triple-slash-reference"
- [X] "type-annotation-spacing"
-- [ ] "typedef"
+- [X] "typedef"
- [ ] "unbound-method"
- [ ] "unified-signatures"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 3c10f32..60fb3f6 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -108,6 +108,18 @@
"before": false
}
],
+ "@typescript-eslint/typedef": [
+ "error",
+ {
+ "arrayDestructuring": true,
+ "arrowParameter": true,
+ "memberVariableDeclaration": true,
+ "objectDestructuring": true,
+ "parameter": true,
+ "propertyDeclaration": true,
+ "variableDeclaration": true
+ }
+ ],
"indent": [
"off"
],