Skip to content
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

feat: add rule no-unneeded-ternary #54

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

devpow112
Copy link
Contributor

@devpow112 devpow112 commented Dec 1, 2022

Prevents stuff like temp1 == temp2 ? true : false. Can also be auto fixed in most simple cases.
https://eslint.org/docs/latest/rules/no-unneeded-ternary

@devpow112 devpow112 requested a review from a team as a code owner December 1, 2022 15:20
@devpow112 devpow112 changed the title Add rule no-unneeded-ternary feat: add rule no-unneeded-ternary Dec 1, 2022
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good thing!

@devpow112 devpow112 merged commit a2f3a81 into main Dec 1, 2022
@devpow112 devpow112 deleted the depowell/add-no-unneeded-ternary branch December 1, 2022 16:04
@ghost
Copy link

ghost commented Dec 1, 2022

🎉 This PR is included in version 0.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants