nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
151 stars 25 forks source link

How to disable multiline for class atrributes? #29

Closed CRIMSON-CORP closed 1 year ago

CRIMSON-CORP commented 1 year 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 1 year ago

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

CRIMSON-CORP commented 1 year 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 1 year 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 1 year ago

Yes that would be awesome 🔥, well done ✅

sharkby7e commented 1 year ago

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

elia commented 1 year ago

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