Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-get-off-my-lawn

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-get-off-my-lawn

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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

NameDescriptionRecommendedFixable
get-off-my-lawn/prefer-arrow-functionsPrefer using arrow function over traditional functions.
get-off-my-lawn/prefer-length-truthinessPrefer length truthiness instead of explicitly checking for zero.

License

MIT © Michael Novotny

Keywords

eslint

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts