css-properties-sorting

1.0.10 • Public • Published

css-properties-sort

NPM version NPM Downloads Build Status

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

  1. display & flow

  2. dosition

  3. dimension

  4. margin/padding/border/outline

  5. type graphic style

  6. background

  7. opacity/cursor/generated/content

  8. transition

Detailed rules(详细规则)

Package Sidebar

Install

npm i css-properties-sorting

Weekly Downloads

7

Version

1.0.10

License

ISC

Last publish

Collaborators

  • dutao200