Enhancement: [no-misused-promises] should include checks around synchronous using
statements and Symbol.dispose
.
#10357
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the rule's documentation
https://typescript-eslint.io/rules/no-misused-promises/
Description
I would like the rule to add a few checks for misused promises involved in explicit resource management code. This is split out from #10208 (comment)
Fail
Pass
Additional Info
Note that the upcoming strict-void-return aims to be a superset of no-misused-promises, so perhaps this check will make sense to add there also, see #9707
The text was updated successfully, but these errors were encountered: