Rule suggestion: switch-exhaustiveness-check
#1160
Labels
design limitation
Currently this is a limitation of the design
switch-exhaustiveness-check
#1160
Disallow non-exhaustive
switch
statements. Especially useful when expanding an enum/string union/numeric union type to allow new options.See https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.md
Wrong ❌
OK ✅
OK ✅
The text was updated successfully, but these errors were encountered: