diff options
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/typescript/default.json | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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", { |