eslint-plugin-si-components
v1.0.0
Published
si-components specific linting rules for ESLint
Downloads
4
Maintainers
Readme
eslint-plugin-si-components
si-components
specific linting rules for ESLint
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-si-components
:
$ npm install eslint-plugin-si-components --save-dev
Note: 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