Multi-line object being formatted into one line if max line limit isn't exceeded. #11176
Labels
area:destructuring
lang:javascript
Issues affecting JS
type:intended
Bug reports that actually turned out to be intended behavior
Prettier 2.3.2
Playground link
Input:
Output:
Expected behavior:
Prior to 2.3.0 the input example would not be formatted into the output example, Prettier didn't turn the multi-line object into a single-line statement. The expected behaviour only happens when we exceed the max line width (120 in our case)
The text was updated successfully, but these errors were encountered: