Enhancement: [no-floating-promises] add ignorePattern #7006
Labels
duplicate
This issue or pull request already exists
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
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-floating-promises/
Description
When moving to TS/upgrading legacy code you often have e.g. jQuery.ajax() calls which now return a promise, but 99% of people write their success/error callbacks directly in the param object.
This leads to tons of eslint-disable-next-line comments.
An option for the rule like
ignorePattern
(which exists in eslint for various rules) which would exclude certain patterns from reporting an error would be greatFail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: