@acolorbright/stylelint-config-acb 中文文档教程
stylelint-config-acb
Stylelint 配置为样式提供 ACB 的标准 linting 设置。
Installation
$ npx install-peerdeps -D @acolorbright/stylelint-config-acb && npm install -DE @acolorbright/stylelint-config-acb@latest
由于 install-peerdeps
没有标记来固定已安装对等依赖项的确切版本,因此建议手动将已安装的版本固定在 package.json
中。
Usage
要开始使用此配置,只需在您的 Stylelint 配置中扩展此包即可。
{
"extends": "stylelint-config-acb",
"rules": {
// Add additional rules here
}
}
有关配置 Stylelint 的更多信息,请查看配置指南。
Property Ordering
属性排序根据 SMACSS 方法执行。
有关属性顺序的完整列表,请参阅此处。
stylelint-config-acb
Stylelint config providing ACB's standard linting setup for styles.
Installation
$ npx install-peerdeps -D @acolorbright/stylelint-config-acb && npm install -DE @acolorbright/stylelint-config-acb@latest
Since install-peerdeps
doesn't have a flag to pin the exact version of the installed peer dependencies it's advisable to pin the installed versions in package.json
by hand.
Usage
To start using this configuration, simply extend this package in your Stylelint configuration.
{
"extends": "stylelint-config-acb",
"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.
Refer to here for the comprehensive list of property orders.