3.1.0 • Published 2 years ago
@acolorbright/stylelint-config-property-sort-order v3.1.0
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.