-
Notifications
You must be signed in to change notification settings - Fork 500
fix(linter): enforce no unnecessary boolean literal comparisons #11734
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
🧪 E2E Preview environment🔑 Environment Variables for Local TestingThis is the preview URL for the E2E tests: https://e2e-studio-kqmfeupgd.sanity.dev To run the E2E tests locally, you can use the following environment variables, then run 💬 Remember to build the project first with |
📊 Playwright Test ReportThis report contains test results, including videos of failing tests. |
⚡️ Editor Performance ReportUpdated Wed, 07 Jan 2026 17:50:42 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
jordanl17
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay - I like this!!
Description
I didn't like some of the auto fixes in #11725 so I've decided to handle them manually here. Since the
no-unnecessary-boolean-literal-compare)rule now supports--fixit doesn't make sense to have it stay awarn, it should beerrorso it's explicit or visible. Otherwise someone might PR a change that spawns a follow up PR like #11725 that risks changing program behavior since we sometimes lie in our type-system 😅What to review
Everything makes sense? I've tried to balance letting the rule work its magic, except for in specific places where it risks changing runtime behavior where we should be using
unknownand parsing untrusted input where custom code can choose to suppress contracts with// @ts-expect-errorand// @ts-ignore.Testing
If the CI is happy we good.
Notes for release
N/A