Skip to content

myuon/eslint-plugin-css-reorder

Repository files navigation

eslint-plugin-css-reorder

npm version License: MIT

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

About

ESLint plugin for CSS properties reordering

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published