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
- Host: GitHub
- URL: https://github.com/prodo-dev/eslint-plugin-prodo
- Owner: prodo-dev
- Created: 2017-04-05T09:59:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T11:44:17.000Z (almost 8 years ago)
- Last Synced: 2025-06-12T20:17:26.639Z (8 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`