ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

One selector per line? #86

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm looking to have output like this:

foo,
bar,
baz { qux: quux; }

However, all three format options seem to leave the selectors on one line. Is this possible?

ghost commented 6 years ago

I was able to make a postcss plugin that runs after perfectionist that does what I want.

Still would be nice to have here.

hacknug commented 5 years ago

EDIT: Just noticed that if I set maxSelectorLength to 1 instead of false I get the exact desired output.

hacknug commented 5 years ago

Assuming this solves our issue given @errorx666 reactions to my comment haha

Should we update the docs to explicitly mention this behavior, @ben-eb?