1.0.4 • Published 5 years ago

eslint-plugin-detect-unwanted-words v1.0.4

Weekly downloads
34
License
MIT
Repository
github
Last release
5 years ago

eslint-plugin-detect-unwanted-words

Detect unwanted words in code and comments

npm.io

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-detect-unwanted-words:

$ npm install eslint-plugin-detect-unwanted-words --save-dev

Usage

Add detect-unwanted-words to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["detect-unwanted-words"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "detect-unwanted-words/detect-unwanted-words-in-code": "error",
    "detect-unwanted-words/detect-unwanted-words-in-comments": "error"
  }
}

Define unwanted words

"settings": {
  "react": {
    "version": "16.8"
  },
  "unwantedWords": ["fck", "sht", "tite", "trust me"]
}

License

MIT

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago