1.0.0 • Published 7 years ago
@prodo-ai/eslint-plugin-prodo v1.0.0
eslint-plugin-prodo
Prodo's custom ESLint stuff
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-prodo:
$ npm install eslint-plugin-prodo --save-devNote: 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:
{
"plugins": [
"prodo"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"prodo/sort-imports-by-path": ["error", {
"sortOrder": ["type", "named", "unnamed"],
"enforceBlankLine": true,
"enforceTrailingLine": true,
"ignoreCase": true
}],
}
}Supported Rules
sort-imports-by-path
1.0.0
7 years ago