diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-19 13:59:26 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-19 13:59:26 +0300 |
commit | dfac7f513816657c89b512fead190607129695e9 (patch) | |
tree | 9568c37e40941fd6cc072c517e14e11ecb698f77 | |
parent | 0b14a227166706f94e409f242983427e8cf95b16 (diff) | |
download | eslint-config-dfac7f513816657c89b512fead190607129695e9.tar.xz eslint-config-dfac7f513816657c89b512fead190607129695e9.zip |
feat(typescript): no-type-alias
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/typescript/default.json | 12 |
2 files changed, 13 insertions, 1 deletions
@@ -429,7 +429,7 @@ - [ ] "no-require-imports" - [ ] "no-this-alias" - [ ] "no-throw-literal" -- [ ] "no-type-alias" +- [X] "no-type-alias" - [ ] "no-unnecessary-boolean-literal-compare" - [ ] "no-unnecessary-condition" - [ ] "no-unnecessary-qualifier" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 0941e82..9c1081b 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -103,6 +103,18 @@ "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": [ "error", { |