node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

eslint-plugin-get-off-my-lawn

eslint-plugin-get-off-my-lawn

Highly opinionated, ESLint plugin with custom rules to produce beautiful, readable JavaScript.

eslint-plugin-get-off-my-lawn

Installation

You'll first need to install ESLint:

$ yarn add eslint --dev

Next, install eslint-plugin-get-off-my-lawn:

$ yarn add eslint-plugin-get-off-my-lawn --dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-get-off-my-lawn globally.

Usage

Add get-off-my-lawn to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "get-off-my-lawn"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "get-off-my-lawn/rule-name": 2
    }
}

Supported Rules

Related

License

MIT © Michael Novotny