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

New rule: Use ternaries rather than && in JSX #3153

Closed
MichaelDeBoey opened this issue Dec 6, 2021 · 2 comments
Closed

New rule: Use ternaries rather than && in JSX #3153

MichaelDeBoey opened this issue Dec 6, 2021 · 2 comments

Comments

@MichaelDeBoey
Copy link
Contributor

Inspired by @kentcdodds' article, It would be awesome to have an ESLint rule that supports this.

@ljharb
Copy link
Member

ljharb commented Dec 6, 2021

Now that ?? exists, there's not really a need to use ternaries here.

I think this is a duplicate of #2073.

@ljharb ljharb closed this as completed Dec 6, 2021
@MichaelDeBoey
Copy link
Contributor Author

This got fixed by #3203

Huge thanks @Belco90! 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants