0.0.1 • Published 6 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-devNext, install eslint-plugin-deny-unwanted-words:
$ npm install eslint-plugin-deny-unwanted-words --save-devUsage
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
6 years ago