diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-16 13:36:06 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-16 13:36:06 +0300 |
commit | f8e62863503df650dbb9e969d94a1033be56a4e4 (patch) | |
tree | dae12b5c56089ea8fcbb305a6d5a21cba19082bf | |
parent | 5c7fa64f194f85e67fbba14e509b2c22d2a0027e (diff) | |
download | eslint-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.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", { |