csscomb.js
csscomb.js copied to clipboard
Double newline between @import statements.
I am using Visual Studio Code version 1.18.1 on Windows 7. In my sass files there is double newline between @import statements.
Before:
@import 'size';
@import 'color';
@import 'footer-vars';
After:
@import 'size';
@import 'color';
@import 'footer-vars';
What can I do in my config to only have one newline between them? It used to be one newline before, but something changed.
This has happened to me too after turning on
"lines-between-rulesets": 1,
i'd imagine we'd need to add an isImportStatement
check here https://github.com/csscomb/csscomb.js/blob/269e85400541d805e97d58d74d24a06a99947db2/src/options/lines-between-rulesets.js#L236 to fix this
Thanks for digging into this @nakhbari!
Would you be up for creating a PR?
This is partially fixed. I can patch the lines-between-rulesets
option.
Hi, any thoughts when this issue will be closed?