You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially, anywhere a switch statement has an enum of the allowed types, we should typecast the expression as (empty), which is a special flow type which assures us that there are no more cases to be had.
The text was updated successfully, but these errors were encountered:
https://github.com/mkscrg/eslint-plugin-flowtype/blob/768e7910b68eea8dbc6129862d6e6fbc0ebe03c6/.README/rules/no-unused-expressions.md
Essentially, anywhere a switch statement has an enum of the allowed types, we should typecast the expression as (empty), which is a special flow type which assures us that there are no more cases to be had.
The text was updated successfully, but these errors were encountered: