aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",
{