diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 22:55:55 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 22:55:55 +0300 |
commit | 1155911243d14469ce2f920003aa6ade0a85cbfd (patch) | |
tree | e140bfc1db6b9ace56b629862b30f555e1b1f2c6 | |
parent | c59ed2364d248452657e3f805f85e69005c1ee83 (diff) | |
download | eslint-config-1155911243d14469ce2f920003aa6ade0a85cbfd.tar.xz eslint-config-1155911243d14469ce2f920003aa6ade0a85cbfd.zip |
feat(typescript): Rule "require-await"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/typescript/default.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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" ] |