The prefer-switch
rule can behave strangely in certain situations
#2564
Labels
prefer-switch
rule can behave strangely in certain situations
#2564
The
prefer-switch
rule is applied in some situations where it doesn't really make sense.Example code:
Example after "fixing":
While this may technically work, it doesn't seem like a situation where this rule should be applied. The result is unintuitive and it also causes TypeScript's type inferences to break in this situation.
The text was updated successfully, but these errors were encountered: