Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cevek/eslintio

Opinionated eslint rules
https://github.com/cevek/eslintio

Last synced: 5 days ago
JSON representation

Opinionated eslint rules

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