aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-16 13:36:06 +0300
committerValentin Popov <info@valentineus.link>2020-02-16 13:36:06 +0300
commitf8e62863503df650dbb9e969d94a1033be56a4e4 (patch)
treedae12b5c56089ea8fcbb305a6d5a21cba19082bf
parent5c7fa64f194f85e67fbba14e509b2c22d2a0027e (diff)
downloadeslint-config-f8e62863503df650dbb9e969d94a1033be56a4e4.tar.xz
eslint-config-f8e62863503df650dbb9e969d94a1033be56a4e4.zip
feat(typescript): no-misused-promises
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 75dbe3f..49f21b1 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -421,7 +421,7 @@
- [X] "no-inferrable-types"
- [X] "no-magic-numbers"
- [ ] "no-misused-new"
-- [ ] "no-misused-promises"
+- [X] "no-misused-promises"
- [X] "no-namespace"
- [ ] "no-non-null-asserted-optional-chain"
- [ ] "no-non-null-assertion"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index c7cca94..98c55db 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -70,6 +70,13 @@
"ignoreReadonlyClassProperties": true
}
],
+ "@typescript-eslint/no-misused-promises": [
+ "error",
+ {
+ "checksConditionals": true,
+ "checksVoidReturn": false
+ }
+ ],
"@typescript-eslint/no-namespace": [
"error",
{