We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mirror of prettier/prettier#5257
I have reproduced this issue on prettierx with and without using the --no-align-ternary-lines option.
prettierx
--no-align-ternary-lines
P.S. I found prettier/prettier#5257 by looking through prettier/prettier#5039 where the ternary formatting was changed while investigating the cause and possible solutions for #41.
The text was updated successfully, but these errors were encountered:
Similar issue on JSX, which seems to be exactly the same on Prettier and prettierx:
Input:
(a ? b : c) ? ( <Element> <Sub /> <Sub /> <Sub /> <Sub /> <Sub /> <Sub /> </Element> ) : ( <Element2> <Sub /> <Sub /> <Sub /> </Element2> )
Output:
(a ? ( b ) : ( c )) ? ( <Element> <Sub /> <Sub /> <Sub /> <Sub /> <Sub /> <Sub /> </Element> ) : ( <Element2> <Sub /> <Sub /> <Sub /> </Element2> );
Sorry, something went wrong.
The issue I found on JSX would definitely affect the more verbose ternary formatting that I proposed in #71.
Looks like a fix should be coming in prettier/prettier#7087, also seems to resolve the ugly JSX formatting issue that I mentioned in #73 (comment) & prettier/prettier#5257 (comment).
I hope it will be merged soon, even better if they release it soon.
No branches or pull requests
mirror of prettier/prettier#5257
I have reproduced this issue on
prettierx
with and without using the--no-align-ternary-lines
option.P.S. I found prettier/prettier#5257 by looking through prettier/prettier#5039 where the ternary formatting was changed while investigating the cause and possible solutions for #41.
The text was updated successfully, but these errors were encountered: