You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Prettier doesn't add an additional indent level if a binary expression is wrapped by a parenthesized expression but Rome does. Playground
Input
(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)();(aa&&bb&&cc&&dd&&ee)();// Indent's as usual if it's a parenthesized sequence expression(aaaaaaaaaaaaaaaaaaaaaaaaa+bbbbbbbbbbbbbbbbbbbbbbbbb+ccccccccccccccccccccccccc+ddddddddddddddddddddddddd+eeeeeeeeeeeeeeeeeeeeeeeee,"test")();(aa+bb+cc+dd+ee)();(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)()()();// Doesn't apply for call argumentscall(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee);
Prettier
(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)();(aa&&bb&&cc&&dd&&ee)();// Indent's as usual if it's a parenthesized sequence expression(aaaaaaaaaaaaaaaaaaaaaaaaa+bbbbbbbbbbbbbbbbbbbbbbbbb+ccccccccccccccccccccccccc+ddddddddddddddddddddddddd+eeeeeeeeeeeeeeeeeeeeeeeee,"test")();(aa+bb+cc+dd+ee)();(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)()()();// Doesn't apply for call argumentscall(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee);
Rome
(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)();(aa&&bb&&cc&&dd&&ee)();// Indent's as usual if it's a parenthesized sequence expression(aaaaaaaaaaaaaaaaaaaaaaaaa+bbbbbbbbbbbbbbbbbbbbbbbbb+ccccccccccccccccccccccccc+ddddddddddddddddddddddddd+eeeeeeeeeeeeeeeeeeeeeeeee,"test")();(aa+bb+cc+dd+ee)();(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee)()()();// Doesn't apply for call argumentscall(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee,)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee,)(aaaaaaaaaaaaaaaaaaaaaaaaa&&bbbbbbbbbbbbbbbbbbbbbbbbb&&ccccccccccccccccccccccccc&&ddddddddddddddddddddddddd&&eeeeeeeeeeeeeeeeeeeeeeeee,);
Expected
Rome's formatting to match Prettier's
The text was updated successfully, but these errors were encountered:
Prettier doesn't add an additional indent level if a binary expression is wrapped by a parenthesized expression but Rome does. Playground
Input
Prettier
Rome
Expected
Rome's formatting to match Prettier's
The text was updated successfully, but these errors were encountered: