summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:55:55 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:55:55 +0300
commit1155911243d14469ce2f920003aa6ade0a85cbfd (patch)
treee140bfc1db6b9ace56b629862b30f555e1b1f2c6
parentc59ed2364d248452657e3f805f85e69005c1ee83 (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/typescript/default.json6
2 files changed, 7 insertions, 1 deletions
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"
]