0.0.1 • Published 4 years ago
eslint-plugin-deny-unwanted-words v0.0.1
eslint-plugin-deny-unwanted-words
Deny unwanted words in code
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-deny-unwanted-words
:
$ npm install eslint-plugin-deny-unwanted-words --save-dev
Usage
Add deny-unwanted-words
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["deny-unwanted-words"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"deny-unwanted-words/deny-unwanted-words": "error"
}
}
Define deny word list
"settings": {
"react": {
"version": "16.8"
},
"denyWordList": ["fck", "sht", "tite", "trust me..."]
}
License
MIT
0.0.1
4 years ago