[no-misused-promises] Suggestion: check more AST positions #4523
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement
New feature or request
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for maintainers to take a look
Hello, I think the
no-misused-promises
rule could be improved to perform the checks in a few more positions, so here is proposal:Repro
Expected Result
The rule reports error for all cases above.
Actual Result
Error is reported only for the first case.
Additional Info
Versions
@typescript-eslint/eslint-plugin
5.10.2
@typescript-eslint/parser
5.10.2
TypeScript
4.5.5
ESLint
8.8.0
node
16.13.1
The text was updated successfully, but these errors were encountered: