1.0.0 • Published 7 years ago
eslint-plugin-si-components v1.0.0
eslint-plugin-si-components
si-components specific linting rules for ESLint
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-si-components:
$ npm install eslint-plugin-si-components --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-si-components globally.
Usage
Add si-components to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"si-components"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"si-components/sort-comp": "error"
}
}Supported Rules
- si-components/sort-comp: Enforce component methods order