From 1155911243d14469ce2f920003aa6ade0a85cbfd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:55:55 +0400 Subject: feat(typescript): Rule "require-await" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 900542c..3455def 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -400,7 +400,7 @@ - [ ] "promise-function-async" - [X] "quotes" - [ ] "require-array-sort-compare" -- [ ] "require-await" +- [X] "require-await" - [ ] "restrict-plus-operands" - [ ] "restrict-template-expressions" - [ ] "return-await" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 40f5473..67d519e 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -54,6 +54,9 @@ "avoidEscape": false } ], + "@typescript-eslint/require-await": [ + "warn" + ], "@typescript-eslint/semi": [ "error", "always", @@ -75,6 +78,9 @@ "quotes": [ "off" ], + "require-await": [ + "off" + ], "semi": [ "off" ] -- cgit v1.2.3