eslint-plugin-sentences

1.1.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i eslint-plugin-sentences

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.13 kB

    Total Files

    6

    Last publish

    Collaborators

    • vaclavprochazka1