css-properties-sort
Installation
First, You should have studied stylelint
npm install css-properties-sorting
Example
in .stylelintrc:
"plugins": "stylelint-order" "extends": "css-properties-sorting"
you can use it with webpack or others
Sorting rules
-
display & flow
-
dosition
-
dimension
-
margin/padding/border/outline
-
type graphic style
-
background
-
opacity/cursor/generated/content
-
transition