This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Break first binary expression group exceeding line width #2414
Labels
A-Formatter
Area: formatter
I-Difficult
Implementation: requires deep knowledge of the tools and the problem.
Rome's formatter doesn't break the right-hand side of a binary expression to a new line if the left expression and the operator together exceed the line width.
It works as expected if the binary expression is nested. Playground
Input
Prettier
Rome
Expected
Consistent formatting of binary expression regardless if a binary expression is nested or not.
Formatted source matches Prettiers output.
The text was updated successfully, but these errors were encountered: