An ESLint micro plugin.
$ npm install eslint-plugin-literal-blacklist --save-dev
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
}]]
}
}
Define blacklist strings for literal.