# eslint-config-cratebind

> Cratebind ES Lint Config

Latest version **8.0.1** (published 2023-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-cratebind
pnpm add eslint-config-cratebind
yarn add eslint-config-cratebind
bun add eslint-config-cratebind
```

## 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 | 8.0.1 |
| Published | 2023-07-18 |
| First published | 2018-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matt W |
| Maintainers | mattfwood |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-config-cratebind
- Repository: https://github.com/cratebind/eslint-config-cratebind
- Issues: https://github.com/cratebind/eslint-config-cratebind/issues
- npm.io page: https://npm.io/package/eslint-config-cratebind

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

- 8.0.1 (latest) — 2023-07-18
- 8.0.0 — 2023-02-21
- 7.0.2 — 2021-06-28
- 7.0.1 — 2021-06-28
- 7.0.0 — 2021-06-28
- 6.0.7 — 2021-05-10
- 6.0.6 — 2021-04-16
- 6.0.5 — 2021-04-16
- 6.0.4 — 2021-03-30
- 6.0.3 — 2020-10-21
- 6.0.2 — 2020-09-23
- 6.0.1 — 2020-09-23
- 6.0.0 — 2020-09-23
- 5.0.2 — 2020-04-21
- 5.0.1 — 2020-04-21
- … 45 more at https://npm.io/package/eslint-config-cratebind/versions

## README

# eslint-config-cratebind

Cratebind ES Lint Config

## Installation

1. Install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
# OR
$ yarn add eslint
```

2. Install `eslint-config-cratebind`:

```
$ npm install eslint-config-cratebind --save-dev
# OR
$ yarn add eslint-config-cratebind
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-config-cratebind` globally.

## Usage

Create or update the `.eslintrc` file in the root of your directory and extend `cratebind`. You can omit the `eslint-config-` prefix:

```json
{
    "extends": ["cratebind"]
}
```

Then overwrite rules as needed:

```js
{
    "extends": ["cratebind"],
    "rules": {
        // 0 is ignore, 1 is warning, 2 is error
        "react/prop-types": 0
    }
}
```

## NPM Script

It's recommended to add a `lint` script to your NPM scripts:

```js
{
    "scripts": {
        // --cache flag improves performance, --fix will autofix fixable issues
        "lint": "eslint --cache \"**/*.js\" --fix"
    }
}
```

## Git Hooks

It's also highly recommended to use [Husky](https://github.com/typicode/husky) and [Lint Staged](https://github.com/okonet/lint-staged) to lint your code before committing:

1. Install Husky and Lint Staged
```bash
yarn add -D husky lint-staged
```

2. Add these to your `package.json`
```json
{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.+(js|ts|tsx)": [
      "eslint --cache --fix --quiet",
      "git add"
    ]
  }
}
```

This combination is

---
_Source: https://npm.io/package/eslint-config-cratebind · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
