This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Assignment of array/object literals #2410
Labels
A-Formatter
Area: formatter
I-Easy
Implementation: easy task, usually a good fit for new contributors
Prettier keeps the opening
[
or{
on the same line as the assignment expression when it exceeds the line width. Rome formats the whole array or object literal on a new line.Input
Prettier
Rome
Expected
Rome's formatting should match Prettiers formatting by putting the opening
{
and[
tokens on the same line as the=
token.Playground
The text was updated successfully, but these errors were encountered: