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 #765

Closed
wants to merge 2 commits into from
Closed

No nested ternary #765

wants to merge 2 commits into from

Conversation

maxdeviant
Copy link
Contributor

This PR removes the one instance of a nested ternary, and re-enables the xo rule to check for them, as per #730.

@rauchg
Copy link
Member

rauchg commented Oct 4, 2016

I really don't mind nested ternaries. Thoughts?

@maxdeviant
Copy link
Contributor Author

@rauchg It really depends on the ternary, but I thought this one wasn't difficult to understand. I was just changing it to make xo happy 😄

If leaving the xo rule disabled is not a big deal then we can leave it be.

@sindresorhus
Copy link
Contributor

I already removed this rule and will be gone in the next version soon to be released: xojs/eslint-config-xo@d3944f6

@maxdeviant
Copy link
Contributor Author

@rauchg @sindresorhus I'll close this out then, if it no longer pertains.

@maxdeviant maxdeviant closed this Oct 6, 2016
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 this pull request may close these issues.

3 participants