Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Static member expressions #2430

Closed
Tracked by #2403
MichaReiser opened this issue Apr 13, 2022 · 0 comments · Fixed by #2727
Closed
Tracked by #2403

Static member expressions #2430

MichaReiser opened this issue Apr 13, 2022 · 0 comments · Fixed by #2727
Assignees
Labels
A-Formatter Area: formatter good first issue Good for newcomers I-Normal Implementation: normal understanding of the tool and awareness

Comments

@MichaReiser
Copy link
Contributor

MichaReiser commented Apr 13, 2022

Rome's formatter doesn't break long static member expressions over multiple lines if it exceeds the configured line width but Prettier does Playground

Input

x.very.long.chain.of.static.members.that.goes.on.for.ever.I.mean.it.for.ever.and.even.longer.than.that.and.rome.doesnt.supportit

Prettier

x.very.long.chain.of.static.members.that.goes.on.for.ever.I.mean.it.for.ever.and
	.even.longer.than.that.and.rome.doesnt.supportit;

Rome

x.very.long.chain.of.static.members.that.goes.on.for.ever.I.mean.it.for.ever.and.even.longer.than.that.and.rome.doesnt.supportit;

Expected

Rome's formatting matches Prettier's

@MichaReiser MichaReiser added good first issue Good for newcomers A-Formatter Area: formatter labels Apr 13, 2022
@ematipico ematipico added I-Normal Implementation: normal understanding of the tool and awareness good first issue Good for newcomers and removed good first issue Good for newcomers labels May 5, 2022
@MichaReiser MichaReiser self-assigned this Jun 16, 2022
@MichaReiser MichaReiser moved this to Done in Rome 2022 Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter good first issue Good for newcomers I-Normal Implementation: normal understanding of the tool and awareness
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants