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.
Finally, enable all of the rules that you would like to use.
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.