Inconsistent indentation in JSX conditional blocks #16252
Labels
area:binary expressions
lang:jsx
Issues affecting JSX (not general JS issues)
status:needs discussion
Issues needing discussion and a decision to be made before action can be taken
Prettier 3.2.5
Playground link
Input:
Output:
Expected output:
Why?
It doesn't make any sense to me that these two blocks indent differently, I'm not 100% sure whether it should follow the style of the upper or lower one, but the upper makes more sense to me given that the lower's closing brace ends up unaligned with its opening one.
The text was updated successfully, but these errors were encountered: