# eslint-plugin-react-hooks-breadhead

> ## What is this

Latest version **1.0.0** (published 2019-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-react-hooks-breadhead
pnpm add eslint-plugin-react-hooks-breadhead
yarn add eslint-plugin-react-hooks-breadhead
bun add eslint-plugin-react-hooks-breadhead
```

## 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 | 1.0.0 |
| Published | 2019-04-24 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 50.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | uncleseneca |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-react-hooks-breadhead
- Repository: https://github.com/breadhead/eslint-plugin-react-hooks-breadhead
- Homepage: https://github.com/breadhead/eslint-plugin-react-hooks-breadhead#readme
- Issues: https://github.com/breadhead/eslint-plugin-react-hooks-breadhead/issues
- npm.io page: https://npm.io/package/eslint-plugin-react-hooks-breadhead

## Recent versions

- 1.0.0 (latest) — 2019-04-24

## README

# eslint-plugin-react-hooks-breadhead

## What is this

This is a fork of [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks) which allows omitting  `dispatch` in dependencies array in hooks

## Example


```js

function Foo(props) {
  const dispatch = useThunk();
  useEffect(() => {
    console.log(dispatch);
  }, []); // <-- should not error
}

```

```js

function Foo(props) {
  const test = {}
  useEffect(() => {
    console.log(test);
  }, []); // <-- should error
}

```


## Installation

```

yarn add eslint-plugin-react-hooks-breadhead --dev

```


## Usage

```js

{
  "plugins": [
    "react-hooks-breadhead"
  ],
  "rules": {
    "react-hooks-breadhead/exhaustive-deps": "error"
  }
}

```

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