eslint-plugin-sentences
Prohibit words, sentences in code & comments.
Installation
Install ESLint either locally or globally.
npm install --save-dev eslint
npm install --save-dev eslint-plugin-sentences
Configuration via .eslintrc
{
"plugins": [
"sentences"
],
"rules": {
"sentences/no-sentences": [`error`, [
{ sentence: 'prohibit sentence', message: 'custom message to show' }
]]
}
}