summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 23:21:09 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 23:21:09 +0300
commit8618ceaeeb7c1736d34db140acf576675be4786c (patch)
tree80b0c191676e9b795359805f68f1cf33febff998 /src/rules
parentbeb1b6ae5522ff25b6a35c447836fa0925c97e6b (diff)
downloadeslint-config-8618ceaeeb7c1736d34db140acf576675be4786c.tar.xz
eslint-config-8618ceaeeb7c1736d34db140acf576675be4786c.zip
feat(typescript): Rule "typedef"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/typescript/default.json12
1 files changed, 12 insertions, 0 deletions
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"
],