feat(typescript): no-type-alias

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-19 14:59:26 +04:00
parent 0b14a22716
commit dfac7f5138
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 13 additions and 1 deletions

View File

@ -429,7 +429,7 @@
- [ ] "no-require-imports" - [ ] "no-require-imports"
- [ ] "no-this-alias" - [ ] "no-this-alias"
- [ ] "no-throw-literal" - [ ] "no-throw-literal"
- [ ] "no-type-alias" - [X] "no-type-alias"
- [ ] "no-unnecessary-boolean-literal-compare" - [ ] "no-unnecessary-boolean-literal-compare"
- [ ] "no-unnecessary-condition" - [ ] "no-unnecessary-condition"
- [ ] "no-unnecessary-qualifier" - [ ] "no-unnecessary-qualifier"

View File

@ -103,6 +103,18 @@
"allowDefinitionFiles": true "allowDefinitionFiles": true
} }
], ],
"@typescript-eslint/no-type-alias": [
"error",
{
"allowAliases": "in-unions-and-intersections",
"allowCallbacks": "always",
"allowConditionalTypes": "always",
"allowConstructors": "never",
"allowLiterals": "never",
"allowMappedTypes": "never",
"allowTupleTypes": "in-unions-and-intersections"
}
],
"@typescript-eslint/no-untyped-public-signature": [ "@typescript-eslint/no-untyped-public-signature": [
"error", "error",
{ {