## What is this
npm install eslint-plugin-react-hooks-breadheadThis is a fork of eslint-plugin-react-hooks which allows omitting dispatch in dependencies array in hooks
``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
}
`
`
yarn add eslint-plugin-react-hooks-breadhead --dev
`
`js
{
"plugins": [
"react-hooks-breadhead"
],
"rules": {
"react-hooks-breadhead/exhaustive-deps": "error"
}
}
``