@acolorbright/stylelint-config 中文文档教程
stylelint-config
Stylelint 配置为样式提供 ACB 的标准 linting 设置。
Installation
npm install -DE @acolorbright/stylelint-config@latest
Usage
要开始使用此配置,请在您的 Stylelint 配置中扩展此包。
{
"extends": "@acolorbright/stylelint-config",
"rules": {
// Add additional rules here
}
}
有关配置 Stylelint 的更多信息,请查看配置指南。
Property Ordering
属性排序根据 SMACSS 方法执行,属性组之间强制使用空行。
参考 css-property-sort-order-smacss财产令的综合清单。
stylelint-config
Stylelint config providing ACB's standard linting setup for styles.
Installation
npm install -DE @acolorbright/stylelint-config@latest
Usage
To start using this configuration, extend this package in your Stylelint configuration.
{
"extends": "@acolorbright/stylelint-config",
"rules": {
// Add additional rules here
}
}
For more information on configuring Stylelint, check out the configuration guide.
Property Ordering
Property ordering is performed according to the SMACSS methodology, with empty lines enforced between property groups.
Refer to css-property-sort-order-smacss for the comprehensive list of property orders.