eslint-plugin-css-reorder

ESLint plugin for CSS properties reordering

MIT License

Downloads
21.3K
Stars
3
Committers
1

eslint-plugin-css-reorder

ESLint plugin for CSS properties reordering

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-css-reorder:

npm install eslint-plugin-css-reorder --save-dev

Usage

Add css-reorder to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["css-reorder"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "css-reorder/rule-name": 2
  }
}

Supported Rules

  • property-reorder