eslint-plugin-smells
v1.0.1
Published
ESLint rules for JavaScript Smells
Downloads
14,293
Maintainers
Readme
eslint-plugin-smells
ESLint rules for JavaScript Smells
Installation
Install ESLint either locally or globally.
npm install eslint
If you installed ESLint
globally, you have to install eslint-plugin-smells
plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-smells
Configuration
Add plugins
section and specify eslint-plugin-smells as a plugin.
{
"plugins": [
"smells"
]
}
Finally, enable all of the rules that you would like to use.
{
"rules": {
"smells/no-switch": 1,
"smells/no-complex-switch-case": 1,
"smells/no-setinterval": 1,
"smells/no-this-assign": 1
}
}
List of supported rules
- no-switch:
- no-complex-switch-case:
- no-setinterval:
- no-this-assign:
- no-complex-string-concat:
- no-complex-chaining:
License
eslint-plugin-smells is licensed under the MIT License.