Rule proposal: Unreachable swtich default case #7627
Labels
duplicate
This issue or pull request already exists
enhancement: new plugin rule
New rule request for eslint-plugin
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
Description
When all the enum cases are listed in a switch statement,
default:
block is unreachable. To my knowledge, there is no existing rule that detects such cases.Note: This could be a special case of a more general unreachable code detection rule.
Fail Cases
Pass Cases
Additional Info
No response
The text was updated successfully, but these errors were encountered: