eslint-plugin-literal-blacklist
v1.2.0
Published
An ESLint micro plugin
Downloads
4,237
Maintainers
Readme
eslint-plugin-literal-blacklist
An ESLint micro plugin.
Installation
$ npm install eslint-plugin-literal-blacklist --save-dev
Usage
You can put string (also accept regex) or object in an array.
// .eslintrc
{
"plugins": [
"literal-blacklist"
],
"rules": {
"literal-blacklist/literal-blacklist": [2, ["put", "your", "string", "^or$", {
term: "object",
message: "custom message",
ignoreCase: true
}]]
}
}
Supported Rules
literal-blacklist
Define blacklist strings for literal.