Request: making verbose JSX ternaries opt in or opt out. #4139
Labels
lang:jsx
Issues affecting JSX (not general JS issues)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:option request
Issues requesting a new option. We generally don’t accept these unless there is technical necessity.
I'd like to formally request making the change to how jsx ternaries are presented optional.
We thought it's a bug at first and after some browsing i found what looks like the cause: #2208
So this is a snapshot before
And that happens when prettier is through with it:
It was easy to read and glance over before and that's how prettier handles all other non-jsx ternaries. I sincerely think that vim being unable to refactor it is too weak a reason. It's actually the first time i can think of that prettier has produced code that's harder to read and looks machine formatted.
For us this is a major change that came out of the blue, prettier auto-formatting was switched off because it would cause heavy changes for small commits, and on a personal note, it's the weirdest feeling to format by hand again. 😞
The text was updated successfully, but these errors were encountered: