[JavaScript] Comments between ternary operator formatting result is ugly #16218
Labels
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
type:enhancement
A potential new feature to be added, or an improvement to how we print something
Prettier 3.2.5
Playground link
Input:
Output:
Expected output:
Why?
The operator
:
won't mix with the comment. This is more clear.The text was updated successfully, but these errors were encountered: