Open TokaLazy opened 6 years ago
I set true for remove-empty-rulesets but when i run my script to format my scss with configuration csscomb i see a mistake.
true
remove-empty-rulesets
{ "always-semicolon": true, "color-case": "lower", "block-indent": "\t", "color-shorthand": true, "element-case": "lower", "eof-newline": true, "leading-zero": false, "lines-between-rulesets": false, "quotes": "double", "remove-empty-rulesets": true, "space-before-colon": "", "space-after-colon": " ", "space-before-combinator": " ", "space-after-combinator": " ", "space-between-declarations": "\n", "space-before-opening-brace": " ", "space-after-opening-brace": "\n", "space-after-selector-delimiter": "\n", "space-before-selector-delimiter": "", "space-before-closing-brace": "\n", "space-after-sort-group": "", "strip-spaces": true, "tab-size": true, "unitless-zero": true, "vendor-prefix-align": false }
html {} body { } main { } section { // Comment } section > article {} @media screen and (min-width:900px) { html {} body { } main { } section { // Comment } section > article {} }
section { // Comment } @media screen and (min-width:900px) { html {} body { } main { } section { // Comment } section > article {} }
As you can see, each selector without property or comment outside of mediaquery are deleted. Instead of media query rules.
Issue
I set
true
forremove-empty-rulesets
but when i run my script to format my scss with configuration csscomb i see a mistake.Configuration csscomb
SCSS input
SCSS output
As you can see, each selector without property or comment outside of mediaquery are deleted. Instead of media query rules.