Enhancement: [no-unsafe-return] Disallow return Promise<any> #8674
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
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
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-unsafe-return
Description
This proposal is to make
no-unsafe-return
disallowPromise<any>
as well.playground
https://typescript-eslint.io/rules/no-unsafe-return
If a
Promise<any>
value is returned, the any type can leak into your code.Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: