Skip to content
Advertisement

Definition for rule ‘react-hooks/exhaustive-deps’ was not found

I am getting the following eslint error after adding // eslint-disable-next-line react-hooks/exhaustive-deps in my code.

8:14 error Definition for rule ‘react-hooks/exhaustive-deps’ was not found

I referred to this post to fix this but the solution mentioned doesn’t work in my case. Any clue how to suppress this eslint error?

PS I’m using standardjs in conjuction.

Advertisement

Answer

Not a perfect solution but changing:

// eslint-disable-next-line react-hooks/exhaustive-deps

to:

// eslint-disable-next-line

suppressed that error.

Advertisement