@acolorbright/stylelint-config-property-sort-order 中文文档教程
stylelint-config-property-sort-order
属性排序顺序的 Stylelint 配置基于 stylelint-config-property-sort-order-smacss, 它使用 SMACSS 方法。
此配置在 SMACSS 属性组之间添加空行。
Installation
npx install-peerdeps -D @acolorbright/stylelint-config-property-sort-order && npm install -DE @acolorbright/stylelint-config-property-sort-order@latest
由于 install-peerdeps
没有标记来固定已安装对等依赖项的确切版本,因此建议手动将已安装的版本固定在 package.json
中。
Usage
要开始使用此配置,只需在您的 Stylelint 配置中扩展此包即可。
{
"extends": "@acolorbright/stylelint-config-property-sort-order",
"rules": {
// Add additional rules here
}
}
有关配置 Stylelint 的更多信息,请查看配置指南。
Property Ordering
有关属性顺序的完整列表,请参阅此处。
stylelint-config-property-sort-order
Stylelint config for Property Sort Ordering based on stylelint-config-property-sort-order-smacss, which uses the SMACSS methodology.
This config adds empty lines between the SMACSS property groups.
Installation
npx install-peerdeps -D @acolorbright/stylelint-config-property-sort-order && npm install -DE @acolorbright/stylelint-config-property-sort-order@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": "@acolorbright/stylelint-config-property-sort-order",
"rules": {
// Add additional rules here
}
}
For more information on configuring Stylelint, check out the configuration guide.
Property Ordering
Refer to here for the comprehensive list of property orders.