All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fixed false positives for non-standard CSS (e.g. SCSS) in
<style>tags, when usingpostcss-htmlcustom syntax
- Added
custom-properties-alphabetical-orderrule
- Added limited autofix for properties in rules containing interpolation in CSS-in-JS syntax. Previosly such rules were ignored by autofix. Now groups of properties are sorted. See
postcss-sortingdocumentation for an example.
- Added support for Stylelint 17
- Dropped Node.js 18 support
- Dropped support for Stylelint older than 16.18.0
- Changed: Ignore properties case for
properties-orderandproperties-alphabetical-order - Added support for more properties shorthands
- Fixed
orderautofix not applied, when Stylelint disable comments are present - Fixed
properties-alphabetical-orderautofix not applied, when Stylelint disable comments are present - Fixed
properties-orderautofix not applied, when Stylelint disable comments are present - Fixed: Don't apply
properties-alphabetical-orderautofixing if there are no violations - Fixed: Report warnings if they weren't fixed by autofix in
properties-alphabetical-order
- Added support for Stylelint 16
- Fixed sorting inside CSS-in-JS
csshelper
- Added Stylelint v15 to peerDependencies
- Fix regression causing root of CSS or SCSS to report violations
- Dropped Node.js 12 and 14 support.
- Added support for
postcss-styled-syntax.
- Breaking change: Dropped Node.js 8 support. Node.js 12 or greater is now required.
- Breaking change: Dropped support for Stylelint 13 and earlier.
- Added support for Stylelint 14.
- Added
nameoption to extended rule object to improve error messaging (fororder). - Fixed
ordernot reporting warnings, if autofix didn't fix them.
- Breaking change: Dropped Node.js 8 support. Node.js 10 or greater is now required.
- Breaking change: Always remove empty line before the first property if this property has any
emptyLineBefore*option targeting it inproperties-order. Even if option set toalwaysempty line before the first property will be removed. - Fixed false positives for
emptyLineBeforeUnspecified.
- Added
stylelint@11as a peer dependency.
- Added
emptyLineBefore: "threshold"option, and related options (emptyLineMinimumPropertyThreshold,emptyLineBeforeUnspecified: "threshold") toproperties-order.
- Fixed
properties-ordernot report warnings, if autofix didn't fix them. - Fixed
properties-alphabetical-ordernow puts shorthands before their longhand forms even if that isn't alphabetical to avoid broken CSS. E. g.border-colorwill be beforeborder-bottom-color.
- Dropped Node.js 6 support. Node.js 8.7.0 or greater is now required.
- Removed stylelint@9 as a peer dependency. stylelint 10 or greater is now required.
- Added
emptyLineBeforeUnspecifiedoption forproperties-order.
- Fixed false negatives with
noEmptyLineBetweenin combination with theorder: "flexible".
- Added
noEmptyLineBetweenfor groups inproperties-order. - Added
stylelint@10as a peer dependency.
- Added experimental support for HTML style tag and attribute.
- Added experimental support for CSS-in-JS.
This is a major release, because this plugin requires [email protected]+ to work correctly with Less files.
- Added optional groupName property for properties-order.
- Adopted
postcss-less@3parser changes, which is dependency of[email protected]+. - Fixed incorrect fixing when properties order and empty lines should be changed at the same time.
- Removed
stylelint@8as a peer dependency.
- Add
[email protected]as a peer dependency.
- Breaking change: Dropped Node.js 4 support. Use Node.js 6 or newer.
- Changed:
orderandproperties-orderwill no longer autofix proactively. If there no violations would be reported with autofix disabled, then nothing will be changed with autofix enabled. Previously, there were changes toflexibleproperties order (#49) or to the order of content within declaration blocks (#51).
- Specified
stylelintinpeerDependenciesrather independencies. Following stylelint's plugin guide.
- Migrated to
[email protected].
- Added autofixing for every rule! Please read docs before using this feature, because each rule has some caveats. stylelint 7.11+ is required for this feature.
- Removed SCSS nested properties support.
- Removed property shortcuts in
properties-order. Before this version it was possible to define only e.g.paddingand it would define position for all undefinedpadding-*properties. Now every property should be explicitly defined in a config. - Removed deprecation warnings:
declaration-block-orderdeclaration-block-properties-orderdeclaration-block-properties-alphabetical-orderdeclaration-block-properties-specified-orderdeclaration-block-property-groups-structure
- Fixed false negative for blockless at-rules in
order.
- Fixed regression in
properties-orderintroduced in 0.4.2.
- Fixed:
orderandproperties-orderweren't recognize SCSS nested properties as declarations.
- Fixed
properties-orderbug, when non-standard declaration is following after a standard one
- Removed
declaration-block-properties-specified-order. Instead useproperties-orderrule. - Removed
declaration-block-property-groups-structure. Instead useproperties-orderrule. - Renamed
declaration-block-ordertoorder - Renamed
declaration-block-properties-alphabetical-ordertoproperties-alphabetical-order - Added
properties-orderrule. It combines removeddeclaration-block-properties-specified-order,declaration-block-property-groups-structure, and now support flexible order. Basically it's likedeclaration-block-properties-orderin stylelint 6.5.0, but better :)
- Changed: Breaking!
declaration-block-property-groups-structurenow usesdeclaration-block-properties-specified-orderrather stylelint's deprecateddeclaration-block-properties-order. Flexible group order isn't supported anymore - Added:
declaration-block-ordersupport newruleextended object, which have newselectoroption. Rules in order can be specified by their selector - Added: New keyword
at-variablesindeclaration-block-order - Added: New keyword
less-mixinsindeclaration-block-order
- Fixed tests for
declaration-block-property-groups-structurewhich were broken by previous fix ¯\_(ツ)_/¯
- Fixed incorrect severity level for
declaration-block-properties-orderwhich is called fromdeclaration-block-property-groups-structure
- Breaking: Renamed
property-groups-structuretodeclaration-block-property-groups-structure - Added
declaration-block-properties-specified-orderrule - Fixed unavailability of
declaration-block-properties-alphabetical-orderrule
- Initial release.