csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

New line before @include #590

Open muuvmuuv opened 6 years ago

muuvmuuv commented 6 years ago

Hey, I struggled a little bit with the csscomb options. I have a main.scss file where all my @import are located and other .scss files where I have some @include. Now I want to have the @include separated by a new line and the @import by zero new lines.

When I declare "lines-between-rulesets": 0, my main.scss file has no new lines anymore but between the @import and a comment should be at least one new line. When I set it to 1 or 2 it does not work for @include in the other files.

That is how my main.scss looks after set this option to 0:

screenshot 2018-08-15 at 10 03 46

Is there already an options for scss rulesets or what do I need to set in the options?

tonyganch commented 5 years ago

@muuvmuuv, i’m sorry to reply so late, but if you’re still interested in answer, can you help me by providing an example, of how you want the snippet above to look?

muuvmuuv commented 5 years ago

Hey @tonyganch, np. I can't remember what the problem was and don't really understand what I wrote above haha. I think I just wanted a line-break between the comments and @import but not between the @import's.