eslint-plugin-switch
v1.0.3
Published
switch
Downloads
5
Maintainers
Readme
eslint-plugin-switch
switch
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-switch
:
npm install eslint-plugin-switch --save-dev
Usage
Add switch
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"switch"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"switch/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.