Small ternary issue && ... || ... #2867
Labels
area:binary expressions
lang:javascript
Issues affecting JS
type:bug
Issues identifying ugly output, or a defect in the program
Not that it made much sense in that case when ? ... : ... would do the same, i was trying to prevent a longer prettier output (? : would have added more lines)
Prettier 1.7.0
Playground link
Input:
Output:
Expected behavior:
I wouldn't expect the trailing [] to hang in the place prettier puts it right now.
The text was updated successfully, but these errors were encountered: