3.0.0. Cleanup
This is a cleanup release. Removed everything not related to ordering stylesheets. I recommend to use combination stylelint 7.11+ with --fix option and stylelint-order 0.5+ plugin instead of this plugin. Using combination above you'll receive linting and autofixing using only one tool!
- Removed options:
at-rule-nested-empty-line-beforeclean-empty-linescomment-empty-line-beforecustom-property-empty-line-beforedeclaration-empty-line-beforedollar-variable-empty-line-beforerule-nested-empty-line-before
- Changes to
properties-order:- Removed
emptyLineBeforeoption. - Removed objects support in configuration. Use plain arrays instead.
- Removed
- Updated to PostCSS 6.
Migration from 2.x
Remove all *-empty-line-before and clean-empty-lines options. Use stylelint with --fix option instead.
properties-order doesn't support property groups. Convert it to a simple array. Use stylelint-order with --fix option for empty line before property groups.
Config for 2.x:
{
"properties-order": [
{
"properties": [
"margin",
"padding"
]
},
{
"emptyLineBefore": true,
"properties": [
"border",
"background"
]
}
]
}Config for 3.x:
{
"properties-order": [
"margin",
"padding",
"border",
"background"
]
}