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

https://github.com/prodo-dev/eslint-plugin-prodo

ESLint custom rules
https://github.com/prodo-dev/eslint-plugin-prodo

Last synced: 8 months ago
JSON representation

ESLint custom rules

Awesome Lists containing this project

README

          

# eslint-plugin-prodo

Prodo's custom ESLint stuff

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-prodo`:

```
$ npm install eslint-plugin-prodo --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-prodo` globally.

## Usage

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

```json
{
"plugins": [
"prodo"
]
}
```

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

```json
{
"rules": {
"prodo/sort-imports-by-path": ["error", {
"sortOrder": ["type", "named", "unnamed"],
"enforceBlankLine": true,
"enforceTrailingLine": true,
"ignoreCase": true
}],
}
}
```

## Supported Rules

* `sort-imports-by-path`