eslint-plugin-smells

ESLint rules for JavaScript Smells

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-plugin-smells
16921.0.18 years ago8 years agoMinified + gzip package size for eslint-plugin-smells in KB

Readme

eslint-plugin-smells
!Maintenance Statusstatus-imagestatus-url !NPM versionnpm-imagenpm-url !Build Statustravis-imagetravis-url !Dependency Statusdeps-imagedeps-url !Coverage Statuscoverage-imagecoverage-url !Code Climateclimate-imageclimate-url
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
License
eslint-plugin-smells is licensed under the MIT License.