multi-line object #13886
Replies: 2 comments 3 replies
-
π @mmeqbel-wiley! Please share a code snippet as it helps a lot. If I understand your problem correctly, the solution may be to use |
Beta Was this translation helpful? Give feedback.
-
with prettier 3.5 you added a new I wonder if that isn't true for Arrays as well. Sometimes we have multiple arrays all intended to hold more than one value (or long values) Imho applying {
"widgets": {
"menu": [
"left",
"home",
"right"
],
"sidebar": [
"about",
"languages",
"sidebar_menu",
"taxonomy_cloud",
"search"
],
"footer": [
"justone"
]
}
} which outputs as (even with
It's not a problem when writing that stuff, cause it's automatically formatted. but readers will have to switch between inline or multiline depending on content which is harder than following the same style. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
how can we keep multi-line formatting for destructuring assignment
input:
output :
const { a, b } = stuff;
expected:
Beta Was this translation helpful? Give feedback.
All reactions