From ccd40191407f7b82fceddb88a0017fafe238be59 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 00:25:09 +0400 Subject: feat(typescript): Rule "await-thenable" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 863ded8..818aaad 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -328,7 +328,7 @@ - [ ] "adjacent-overload-signatures" - [ ] "array-type" -- [ ] "await-thenable" +- [X] "await-thenable" - [ ] "ban-ts-comment" - [ ] "ban-ts-ignore" - [ ] "ban-types" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 60fb3f6..a2253a2 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -1,4 +1,7 @@ { + "@typescript-eslint/await-thenable": [ + "error" + ], "@typescript-eslint/indent": [ "error", "tab", -- cgit v1.2.3