Skip to content

3.0.0. Cleanup

Compare
Choose a tag to compare
@hudochenkov hudochenkov released this 09 Jun 17:29
· 124 commits to master since this release

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-before
    • clean-empty-lines
    • comment-empty-line-before
    • custom-property-empty-line-before
    • declaration-empty-line-before
    • dollar-variable-empty-line-before
    • rule-nested-empty-line-before
  • Changes to properties-order:
    • Removed emptyLineBefore option.
    • Removed objects support in configuration. Use plain arrays instead.
  • 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"
	]
}