Closed UltraDosaaf closed 7 years ago
No there isn't. Can you show different code examples and we'll figure out what configuration you need to enforce this?
Sure:
#wrapper {
$width: 600px;
$height: 300px;
width: $width;
height: $height;
margin: 0 auto 0;
border: 1px solid #ff0000;
.item {
position: relative;
overflow: hidden;
$bg_color: #ff9900;
background-color: $bg_color;
.block {
$block_width: $width / 3;
float: left;
width: $block_width;
}
}
}
You might want this setting:
{
"declaration-empty-line-before": [true, {
"except": ["first-nested", "after-comment", "after-declaration"]
}],
}
It clears now all empty lines except the one after dollar-rule )
There is no *-after
options. Your case is unusual. Most of developers group variables in one place, declaration in another place. In your case variables all over the rule.
I need empty line after dollar variable. Maybe there is the option opposit to "dollar-variable-empty-line-before"?