stylelint-scss规范
规则 | 说明 |
---|---|
“at-import-no-partial-leading-underscore” :true | @import 命名不允许下划线 |
“at-import-partial-extension”:“never” | @import中不包含.scss扩展名 |
“at-mixin-argumentless-call-parentheses”: “never” | @include调用时不加() |
“at-mixin-named-arguments”:”always” | @include调用时参数问题 |
“at-mixin-parentheses-space-before”: “never” | @mixin 命名与()之间的空格 |
“dollar-variable-colon-space-after”: “always” | $变量:后加空格 |
“dollar-variable-first-in-block”: [true,{ ignore: [“comments”, "imports”]}] | $变量放在每块的最前面 |
“declaration-nested-properties”:“never” | 使用- 如margin-top |
“declaration-nested-properties-no-divided-groups”:true | 不许将相同命名空间的嵌套属性划分为多个组 |