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
Rule option request: multiline-ternary
to disallow newlines
#6751
Comments
Thanks, @ljharb, I know it can be a bit tedious, but would you mind filling in the template for proposing a rule change? |
@vitorbal ah, sorry, i didn't realize there was a template for that as well. Updated. |
I set JSCS Compatibility milestone since JSCS has disallowMultiLineTernary rule. |
Interestingly enough, this was discussed and we ended up deciding to only implement "always". I'm happy to add this in if/when it's accepted. Assigning myself now so I don't lose track of it. |
@eslint/eslint-team Thoughts? Looks like we need two more thumbs on this. |
For context: #6066 (comment) |
I'll support this. Seems like a reasonable enhancement to |
👍 from me. |
@kaicataldo If you are championing this, I think you can mark it as accepted at this point. |
The
multiline-ternary
rule allows me to require ternaries to be multiline - I'd like an option that requires ternaries not be multiline.What version of ESLint are you using?
v3.1.1
What rule do you want to change?
multiline-ternary
, I'd like a "disallowMutliline" option added.What code should be flagged as incorrect with this change?
What happens when the rule is applied to this code now?
It passes.
The text was updated successfully, but these errors were encountered: