Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cevek/eslintio
Opinionated eslint rules
https://github.com/cevek/eslintio
Last synced: 5 days ago
JSON representation
Opinionated eslint rules
- Host: GitHub
- URL: https://github.com/cevek/eslintio
- Owner: cevek
- Created: 2019-10-06T15:06:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T15:11:42.000Z (almost 3 years ago)
- Last Synced: 2024-11-01T02:34:54.219Z (about 2 months ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-eslintio
Opinionated eslint rules
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-eslintio`:
```
$ npm install eslint-plugin-eslintio --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-eslintio` globally.
## Usage
Add `eslintio` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"eslintio"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"eslintio/sort-keys": "error"
}
}
```## Supported Rules
* `sort-keys` - require object keys to be sorted by key length and then sorted alphabetically