All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
properties-order: "alphabetical" now puts shorthands before their longhand forms even if that isn't alphabetical to avoid broken CSS. E. g. border-color will be before border-bottom-color.Array.sort() in V8.at-variables keyword for order now follows postcss-less@3 parser.at-variables keyword for order.throw-validate-errors option.properties-order.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!
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-beforeproperties-order:
emptyLineBefore option.order supports new rule extended object, which has new selector option. Rules in order can be specified by their selector.hasBlock was set to false in extended at-rule object in order.null for all options.This release completely incompatible with the previous API. There is a lot new options. Please read the documentation.
A migration guide is available.
sort-order split into order and properties-order.@include icon; has no block.rule-nested-empty-line-beforeat-rule-nested-empty-line-beforedeclaration-empty-line-beforecustom-property-empty-line-beforedollar-variable-empty-line-beforecomment-empty-line-beforeclean-empty-lines: Remove all empty lines./* postcss-sorting: on/off */preserve-empty-lines-between-children-rulesempty-lines-between-children-rulesempty-lines-between-media-rulesempty-lines-before-commentempty-lines-after-commentsmacss and alphabetical predefined configs.@include media didn't found rules like @include media(">=desk") {}.@include mwp(1). (thanks, @Redknife) #29empty-lines-before-comment and empty-lines-after-comment, which add empty lines before and after a comment or a group of comments.sort-order. #21preserve-empty-lines-between-children-rules, which preserve empty lines between children rules and preserve empty lines for comments between children rules. #20empty-lines-between-children-rules and empty-lines-between-media-rules are not 0. #19empty-lines-between-media-rules option which set a number of empty lines between nested media rules. #16empty-lines-between-children-rules option which set a number of empty lines between nested children rules. (thanks, @scalder27) #9