eslint-plugin-get-off-my-lawn

3.0.0 • Public • Published

eslint-plugin-get-off-my-lawn

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

eslint-plugin-get-off-my-lawn

Install

NPM

$ npm i eslint eslint-plugin-get-off-my-lawn --save-dev

Yarn

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

Usage

Create an ESLint config in your package.json or .eslintrc.js file.

This plugin exports a recommended config that enforces good practices. You can optionally enable it or explicitly add rules yourself.

package.json

{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": ["plugin:get-off-my-lawn/recommended"], // (optional)
        "plugins": ["get-off-my-lawn"],
        "rules": {
            // enable additional rules, override rule options, or disable rules
        }
    }
}

.eslintrc.js

module.exports = {
    extends: ['plugin:get-off-my-lawn/recommended'], // (optional)
    plugins: ['get-off-my-lawn']
    rules: {
        // enable additional rules, override rule options, or disable rules
    },
};

Rules

Name Description Recommended Fixable
get-off-my-lawn/prefer-arrow-functions Prefer using arrow function over traditional functions.
get-off-my-lawn/prefer-length-truthiness Prefer length truthiness instead of explicitly checking for zero.

Related

License

MIT © Michael Novotny

/eslint-plugin-get-off-my-lawn/

    Package Sidebar

    Install

    npm i eslint-plugin-get-off-my-lawn

    Weekly Downloads

    3,593

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    14.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • manovotny