Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myuon/eslint-plugin-css-reorder
ESLint plugin for CSS properties reordering
https://github.com/myuon/eslint-plugin-css-reorder
css eslint eslint-plugin
Last synced: 23 days ago
JSON representation
ESLint plugin for CSS properties reordering
- Host: GitHub
- URL: https://github.com/myuon/eslint-plugin-css-reorder
- Owner: myuon
- License: mit
- Created: 2022-03-12T13:38:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T07:41:53.000Z (over 2 years ago)
- Last Synced: 2024-10-11T05:35:06.954Z (27 days ago)
- Topics: css, eslint, eslint-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-css-reorder
- Size: 289 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-css-reorder
[![npm version](https://badge.fury.io/js/eslint-plugin-css-reorder.svg)](https://badge.fury.io/js/eslint-plugin-css-reorder) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
ESLint plugin for CSS properties reordering
## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```Next, install `eslint-plugin-css-reorder`:
```sh
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:
```json
{
"plugins": ["css-reorder"]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"css-reorder/rule-name": 2
}
}
```## Supported Rules
- property-reorder