summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 23:25:09 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 23:25:09 +0300
commitccd40191407f7b82fceddb88a0017fafe238be59 (patch)
tree2ee8804a8bde00fb3a421ad9fd8208c70c6d809b
parent8618ceaeeb7c1736d34db140acf576675be4786c (diff)
downloadeslint-config-ccd40191407f7b82fceddb88a0017fafe238be59.tar.xz
eslint-config-ccd40191407f7b82fceddb88a0017fafe238be59.zip
feat(typescript): Rule "await-thenable"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json3
2 files changed, 4 insertions, 1 deletions
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",