是否有防止块开头出现空行的规则?
Is there a rule to prevent empty lines at the beginning of the block?
是否有stylelint规则获取以下内容?
我已经阅读了文档,但我并没有找不到
/* bad */
a {
color: pink;
}
/* good */
a {
color: pink;
}
这解决了我的问题
"declaration-empty-line-before": ["always", {
"except": ["first-nested"],
"ignore": ["after-comment", "after-declaration"]
}],
参考:https://stylelint.io/user-guide/rules/declaration-empty-line-before/#first-nested
是否有stylelint规则获取以下内容?
我已经阅读了文档,但我并没有找不到
/* bad */
a {
color: pink;
}
/* good */
a {
color: pink;
}
这解决了我的问题
"declaration-empty-line-before": ["always", {
"except": ["first-nested"],
"ignore": ["after-comment", "after-declaration"]
}],
参考:https://stylelint.io/user-guide/rules/declaration-empty-line-before/#first-nested