Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 522 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 522 Bytes

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' }
        ]]
    }
}