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

no-nested-ternary linting rule #770

Closed
thyde1 opened this issue Aug 22, 2023 · 2 comments · Fixed by #771
Closed

no-nested-ternary linting rule #770

thyde1 opened this issue Aug 22, 2023 · 2 comments · Fixed by #771

Comments

@thyde1
Copy link
Member

thyde1 commented Aug 22, 2023

This seems like a sensible rule to introduce.

To copy directly from the following link:

Nesting ternary expressions can make code more difficult to understand.
e.g. var foo = bar ? baz : qux === quxx ? bing : bam;

https://eslint.org/docs/latest/rules/no-nested-ternary

@hawkzey
Copy link

hawkzey commented Aug 22, 2023

omg please, I hate it when I see this

@Senderek Senderek linked a pull request Aug 22, 2023 that will close this issue
@Senderek
Copy link
Contributor

PR: #771
Reviews appreciated.

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 a pull request may close this issue.

3 participants