stylefmt
stylefmt copied to clipboard
Support for stylelint's max-line-length
For wrapping long list of selectors, support for max-line-length would be great to have. This can get a bit tricky to get right when it comes to comments and url, which should probably be left out from wrapping.
Example input
.aaaaaaaaaaaaaaaaaaaaaaaaaaa, .bbbbbbbbbbbbbbbbbbbbbbbbbbb, .ccccccccccccccccccccccccccc, .ddddddddddddddddddddddddddd {
color: blue;
}
Example output, wrapped at 80:
.aaaaaaaaaaaaaaaaaaaaaaaaaaa, .bbbbbbbbbbbbbbbbbbbbbbbbbbb,
.ccccccccccccccccccccccccccc, .ddddddddddddddddddddddddddd {
color: blue;
}
It seems nice! But, it is only for selectors. Now, I have no idea to handle comments and url as you said.
Thanks for your idea :)
Maybe the code used by perfectionist would help?