This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 656
Nested assignments #2416
Labels
A-Formatter
Area: formatter
I-Difficult
Implementation: requires deep knowledge of the tools and the problem.
Comments
45 tasks
And different indentation too 🤔 |
All assignment targets have the same indention (except the first one). The right hand side is indented one level deeper. |
|
ematipico
added
I-Normal
Implementation: normal understanding of the tool and awareness
I-Difficult
Implementation: requires deep knowledge of the tools and the problem.
and removed
I-Normal
Implementation: normal understanding of the tool and awareness
labels
May 5, 2022
This requires understanding Prettier's heuristic. |
I will work on this one |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-Formatter
Area: formatter
I-Difficult
Implementation: requires deep knowledge of the tools and the problem.
Rome's formatter breaks nested assignments onto a new line compared to Prettier that only prints the right-hand side expression on a new line. Playground
Input
Prettier
Rome
Expected
Rome to match Prettier's output.
I'm not entirely sure if I figured out Prettier's heuristic. It could make sense to study prettier's source code before tackling this issue to confirm. But my understanding is that Prettier:
The text was updated successfully, but these errors were encountered: