nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
135 stars 22 forks source link

How to disable multiline for class atrributes? #29

Closed CRIMSON-CORP closed 9 months ago

CRIMSON-CORP commented 11 months ago

image I really like this formatter, but its kind of a pain for me when class names are broken into their own lines, especially tailwind css classes as in the picture, is there a way to disable and enable this feature

such that classes are aligned like this? image

corepilotcloud commented 11 months ago

@CRIMSON-CORP did you figure out how to fix this?

CRIMSON-CORP commented 11 months ago

@CRIMSON-CORP did you figure out how to fix this?

No, i went to use another formatter, i didn't see anyone having my issue in all the list of issues, i thought that was the way the package was, so i discarded it

I think I'll reopen the issue

elia commented 10 months ago

@corepilotcloud @CRIMSON-CORP I'm working on taking the list of TW classes from somewhere in the right order, but maybe in the meantime I'll just add an option to keep multiple classes on the same line until we reach the max line width boundary, would that help?

CRIMSON-CORP commented 10 months ago

Yes that would be awesome 🔥, well done ✅

sharkby7e commented 10 months ago

i would love for this to not happen as well! appreciate it!

elia commented 9 months ago

Finally fixed in #33! I'm about to publish a new minor 🙌