eslint-plugin-react-hooks-addons weekly downloads statistics
By szhsin · npm · ESLint plugins
ESLint rule to check unused and potentially unnecessary dependencies in React Hooks.
eslint-plugin-react-hooks-addons has 28,062 recorded weekly downloads on npm, a decrease of 38.4% over the past 30 days.
It ranks #676 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -16.7%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About eslint-plugin-react-hooks-addons
eslint-plugin-react-hooks-addons
ESLint rule to check unused and potentially unnecessary dependencies in React Hooks.
Why?
eslint-plugin-react-hooks is awesome for linting the dependency array of React Hooks. But it doesn't do one thing: unused dependencies in the useEffect or useLayoutEffect hooks are not reported. Unused variables in useEffect's dependency array are perfectly valid in some use cases. However, they might be unnecessary in some other cases which cause the effect hook to run unintentionally.
Take the following code as an example:
Next day you update the code and remove the second fetch but forget to remove user2 from the dependency array:
Then the useEffect will run whenever user1 or user2 changes, which is probably not your intention. Similar errors occur more frequently when the hook callback function is large and there is a long dependency array. This eslint plugin checks and reports this kind of error.
What if I have a value which is not used in the hook function scope but I want the effect hook to run whenever that value has changed?
You could prepend a /* effect dep */ comment to the value in dependency array then it will be skipped during linting. It brings an addition benefit: the value is explicitly marked as effectful so that other people coming across the code will understand it's not a programmatic error.
Install
with npm
or with Yarn
Usage
Flat config
Or, use a custom configuration:
Legacy config
Or, use a custom configuration:
Effect deps
Explicitly mark a dependency as effectful with /* effect dep */ comment:
Then only the unusedVar will be reported as an unused dependency.
Options
effectComment
You can use a different comment to mark dependencies as effectful:
additionalHooks
The rule checks useEffect and useLayoutEffect hooks by default. It can be configured to check dependencies of custom hooks with the additionalHooks option. This option accepts a pattern key which is a regex pattern. If you set the replace key to true, it would replace the default hooks.
_Note: this eslint plugin is supposed to work in tandem with eslint-plugin-react-hooks, as it doesn't check things that have already been reported by that plugin._
License
MIT Licensed.
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- react
- hook
Where eslint-plugin-react-hooks-addons sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm ESLint plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-react-hooks-addons. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.