# eslint-plugin-get-off-my-lawn

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

Latest version **3.0.0** (published 2021-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-get-off-my-lawn
pnpm add eslint-plugin-get-off-my-lawn
yarn add eslint-plugin-get-off-my-lawn
bun add eslint-plugin-get-off-my-lawn
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-11-30 |
| First published | 2017-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.20.0 |
| Dependencies | 2 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Michael Novotny |
| Maintainers | manovotny |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-get-off-my-lawn
- Repository: https://github.com/manovotny/eslint-plugin-get-off-my-lawn
- Homepage: https://github.com/manovotny/eslint-plugin-get-off-my-lawn#readme
- Issues: https://github.com/manovotny/eslint-plugin-get-off-my-lawn/issues
- npm.io page: https://npm.io/package/eslint-plugin-get-off-my-lawn

## Dependencies (2)

- [dot-prop](https://npm.io/package/dot-prop.md) 6.0.1
- [import-modules](https://npm.io/package/import-modules.md) 2.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-11-30
- 2.0.0 — 2021-04-20
- 1.1.2 — 2021-02-28
- 1.1.1 — 2021-02-28
- 1.1.0 — 2021-02-13
- 1.0.2 — 2018-07-18
- 1.0.1 — 2018-04-04
- 1.0.0 — 2017-11-29

## README

# eslint-plugin-get-off-my-lawn

> Highly opinionated, [ESLint plugin](https://eslint.org/docs/developer-guide/working-with-plugins) with custom rules to produce beautiful, readable JavaScript.

![eslint-plugin-get-off-my-lawn](.github/logo.jpg)

## 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](index.js) that enforces good practices. You can optionally enable it or explicitly add rules yourself.

### package.json

```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

```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](docs/rules/prefer-arrow-functions.md)     | Prefer using arrow function over traditional functions.           | ✅          | ❌      |
| [get-off-my-lawn/prefer-length-truthiness](docs/rules/prefer-length-truthiness.md) | Prefer length truthiness instead of explicitly checking for zero. | ❌          | ✅      |

## Related

-   [eslint-config-get-off-my-lawn](https://www.npmjs.com/package/eslint-config-get-off-my-lawn) - A highly opinionated, [sharable config](http://eslint.org/docs/developer-guide/shareable-configs.html) of [ESLint](http://eslint.org) rules to produce beautiful, readable JavaScript.
-   [prettier-config-get-off-my-lawn](https://www.npmjs.com/package/prettier-config-get-off-my-lawn) - A highly opinionated, [sharable config](https://prettier.io/docs/en/configuration.html#sharing-configurations) of Prettier rules to produce beautiful, readable code.
-   [stylelint-config-get-off-my-lawn](https://www.npmjs.com/package/stylelint-config-get-off-my-lawn) - A highly opinionated, [sharable config](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#extends) of [stylelint](http://stylelint.io) rules to produce beautiful, readable CSS and Sass.

## License

MIT © [Michael Novotny](https://manovotny.com)

---
_Source: https://npm.io/package/eslint-plugin-get-off-my-lawn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
