我似乎无法在规则和文档中准确找到我想要的东西。我想在嵌套规则的底部强制一个空行。
@media print {
a {
color: red;
}
/* <----- Force this empty line here */
}
我看到了规则:rule-nested-empty-line-before
这将在媒体查询的顶部强制换行。
而且我看到了规则:block-closing-brace-empty-line-before
这将在块的末尾强制一个新行,但这也会在color: red
.
我觉得旧版本的 Stylelint 曾经有一个规则可以做到这一点,但我似乎无法再弄清楚了。
有什么想法吗?