1.0.4 • Published 6 years ago
eslint-plugin-detect-unwanted-words v1.0.4
eslint-plugin-detect-unwanted-words
Detect unwanted words in code and comments

Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-detect-unwanted-words:
$ npm install eslint-plugin-detect-unwanted-words --save-devUsage
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