feat(typescript): Rule "typedef"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 00:21:09 +04:00
parent beb1b6ae55
commit 8618ceaeeb
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 13 additions and 1 deletions

View File

@ -410,6 +410,6 @@
- [ ] "switch-exhaustiveness-check"
- [ ] "triple-slash-reference"
- [X] "type-annotation-spacing"
- [ ] "typedef"
- [X] "typedef"
- [ ] "unbound-method"
- [ ] "unified-signatures"

View File

@ -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"
],