Enhancement: [no-unsafe-enum-comparison] Suggestion fixer to switch to enum value #7643
Closed
4 tasks done
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
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-enum-comparison
Description
If the rule detects an unsafe enum<>literal comparison that happens to match with a member of the enum's type, the rule report could include a suggestion to switch the literal to that literal value.
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: