๐๏ธ Recess-based property sort order for Stylelint.
376
stars
255
commits
JavaScript
primary language
Sep 1, 2026
updated
A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.
*With some modifications & additions for modern properties.
npm install --save-dev stylelint stylelint-order stylelint-config-recess-order
module.exports = {
extends: ['stylelint-config-recess-order'],
rules: {
// Add overrides and additional rules here
},
}
The default setup applies only the 'order/properties-order' rule with the
various property groups. If you need to configure other options for this rule,
the groups can be imported separately and the rule configured to your needs.
const propertyGroups = require('stylelint-config-recess-order/groups')
module.exports = {
extends: [], // Do not extend the config here.
rules: {
// Configure the rule manually.
'order/properties-order': propertyGroups.map((group) => ({
...group,
emptyLineBefore: 'always',
noEmptyLineBetween: true,
})),
},
}
[!TIP] If you need the Recess property order for any Rust-based tooling, thereโs now a crate for that!
147 commits
42 commits
28 commits
14 commits
JavaScript
99.5%
๐๏ธ Recess-based property sort order for Stylelint.
376
stars
255
commits
JavaScript
primary language
Sep 1, 2026
updated
A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.
*With some modifications & additions for modern properties.
npm install --save-dev stylelint stylelint-order stylelint-config-recess-order
module.exports = {
extends: ['stylelint-config-recess-order'],
rules: {
// Add overrides and additional rules here
},
}
The default setup applies only the 'order/properties-order' rule with the
various property groups. If you need to configure other options for this rule,
the groups can be imported separately and the rule configured to your needs.
const propertyGroups = require('stylelint-config-recess-order/groups')
module.exports = {
extends: [], // Do not extend the config here.
rules: {
// Configure the rule manually.
'order/properties-order': propertyGroups.map((group) => ({
...group,
emptyLineBefore: 'always',
noEmptyLineBetween: true,
})),
},
}
[!TIP] If you need the Recess property order for any Rust-based tooling, thereโs now a crate for that!
147 commits
42 commits
28 commits
14 commits
JavaScript
99.5%