ESLint rules for JavaScript Smells
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs/rules
lib/rules
tests/lib/rules
.editorconfig
.eslintignore
.eslintrc
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

eslint-plugin-smells

Maintenance Status NPM version Build Status Dependency Status Coverage Status Code Climate

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.