Skip to content

chore(eslint): re-enable no-unsafe-enum-comparison COMPASS-9459 #7022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Jun 13, 2025

I guess the way to fix these 100% correct way would be to have a method that asserts string value to the actual enum and use this when comparing, at the same time we're trying to move away from enums anyway, so I'm just coercing their types to something that will satisfy the eslint check. Please tell me if you feel like this is not a good approach

@gribnoysup gribnoysup requested a review from a team as a code owner June 13, 2025 15:05
@gribnoysup gribnoysup changed the title chore(eslint): re-enable no-unsafe-enum-comparison chore(eslint): re-enable no-unsafe-enum-comparison COMPASS-9459 Jun 13, 2025
@gribnoysup gribnoysup merged commit 22c56de into main Jun 16, 2025
56 of 57 checks passed
@gribnoysup gribnoysup deleted the eslint-enable-no-unsafe-enum-comparison branch June 16, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants