-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Return boolean through direct comparison #4822
Conversation
src/apps/experimental/components/library/GenresSectionContainer.tsx
Outdated
Show resolved
Hide resolved
…r.tsx Remove parentheses Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
We should add this eslint rule to the config to prevent any other issues of this type being added in the future: https://eslint.org/docs/latest/rules/no-unneeded-ternary |
@Goku-04 would you care to add that eslint rule as part of this PR? Thanks! |
I hope I did it right... it's my first time contributing to a project and handling linters |
The lint rule created some erros in other directories and I think some of them are false errors. |
All of them (9) are using unnecessary ternary: |
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Cloudflare Pages deployment
|
Changes
Issues
N/A