Open belav opened 10 months ago
Do we have a group type that breaks if its children are longer than its siblings' children?
Do we have a group type that breaks if its children are longer than its siblings' children?
No and the way things work I don't know if it would be possibly.
A ConditionalGroup may accomplish something like that. If the first possible group breaks the children and does not break the siblings and is considered to fit, then it gets printed.
closes #921
The goal of this ticket was to prefer breaking trailing members on a parenthesized expression before breaking the expression. For example.
The way it is currently implemented though results in the following
This does mean things are more consistent with longer chains
Another example where I think the old version was probably better
I'm not sure how much work it would be to keep the tailing call next to the
)
if the contents of the parenthsized expression break.FWIW prettier does not have any logic around this.