feat(typescript): explicit-function-return-type

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-19 14:46:41 +04:00
parent 18c9632298
commit b9cabcb54b
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -394,7 +394,7 @@
- [ ] "consistent-type-assertions" - [ ] "consistent-type-assertions"
- [ ] "consistent-type-definitions" - [ ] "consistent-type-definitions"
- [ ] "default-param-last" - [ ] "default-param-last"
- [ ] "explicit-function-return-type" - [X] "explicit-function-return-type"
- [ ] "explicit-member-accessibility" - [ ] "explicit-member-accessibility"
- [ ] "explicit-module-boundary-types" - [ ] "explicit-module-boundary-types"
- [ ] "func-call-spacing" - [ ] "func-call-spacing"

View File

@ -9,6 +9,14 @@
"before": false "before": false
} }
], ],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": false,
"allowHigherOrderFunctions": false,
"allowTypedFunctionExpressions": false
}
],
"@typescript-eslint/indent": [ "@typescript-eslint/indent": [
"error", "error",
"tab", "tab",