Skip to content
PluginStats

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.

View on npm Fresh · Dec 6, 2026

eslint-plugin-react-hooks-addons has 57,260 recorded weekly downloads on npm, an increase of 13.1% over the past 30 days, ranking #747 of 3,247 tracked listings.

Weekly downloads
57,260
Official API · Dec 5, 2026
7-day growth
+19.7%
+9.4K weekly downloads
30-day growth
+13.1%
+6.6K weekly downloads
90-day growth
+25.1%
+11.5K weekly downloads
Rank
#747
▲ 20 in 7 days

About eslint-plugin-react-hooks-addons

eslint-plugin-react-hooks-addons

ESLint rule to check unused and potentially unnecessary dependencies in React Hooks.

NPM npm downloads

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:

const [user1, setUser1] = useState();
const [user2, setUser2] = useState();

useEffect(() => {
  fetch(`someUrl/${user1}`).then(/* ... */);
  fetch(`someUrl/${user2}`).then(/* ... */);
}, [user1, user2]);

Next day you update the code and remove the second fetch but forget to remove user2 from the dependency array:

const [user1, setUser1] = useState();
const [user2, setUser2] = useState();

useEffect(() => {
  fetch(`someUrl/${user1}`).then(/* ... */);
}, [user1, user2]);

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? <br/> <br/> 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.

useEffect(() => {
  fetch(`someUrl/${user1}`).then(/* ... */);
- }, [user1, user2]);
+ }, [user1, /* effect dep */ user2]);

Install

with npm

npm install -D eslint-plugin-react-hooks-addons

or with Yarn

yarn add -D eslint-plugin-react-hooks-addons

Usage

Flat config
import reactHooksAddons from 'eslint-plugin-react-hooks-addons';

export default [
  reactHooksAddons.configs.recommended
  // other configs...
];

Or, use a custom configuration:

import reactHooksAddons from 'eslint-plugin-react-hooks-addons';

export default [
  // other configs...
  {
    plugins: {
      'react-hooks-addons': reactHooksAddons
    },
    rules: {
      'react-hooks-addons/no-unused-deps': 'warn'
    }
  }
];
Legacy config
{
  "extends": ["plugin:react-hooks-addons/recommended-legacy"]
}

Or, use a custom configuration:

{
  "plugins": ["react-hooks-addons"],
  "rules": {
    "react-hooks-addons/no-unused-deps": "warn"
  }
}
Effect deps

Explicitly mark a dependency as effectful with /* effect dep */ comment:

useEffect(() => {
  // ...
}, [unusedVar, /* effect dep */ effectVar]);

Then only the unusedVar will be reported as an unused dependency.

Options
effectComment

You can use a different comment to mark dependencies as effectful:

"rules": {
  "react-hooks-addons/no-unused-deps": [
    "warn",
    {
      "effectComment": "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.

"rules": {
  "react-hooks-addons/no-unused-deps": [
    "warn",
    {
      "additionalHooks": {
        "pattern": "useMyCustomHook|useMyOtherCustomHook",
        "replace": true
      }
    }
  ]
}

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-react-hooks-addons weekly downloads on npm, last 90 days: 57,260 weekly downloads as of Dec 5, 2026, +25.1% over 90 days.eslint-plugin-react-hooks-addonsWeekly downloads on npm · Last 90 days57,260downloads / week+25.1% over 90 days010K20K30K40K50K60K70K80KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-plugin-react-hooks-addons weekly downloads on npm, last 90 days: 57,260 weekly downloads as of Dec 5, 2026, +25.1% over 90 days.

7/30/90-day growth

eslint-plugin-react-hooks-addons weekly downloads growth on npm: +19.7% over 7 days, +13.1% over 30 days, +25.1% over 90 days.eslint-plugin-react-hooks-addonsWeekly downloads growth on npm57,260downloads / week now7-day growth+9,440 weekly downloads+19.7%30-day growth+6,635 weekly downloads+13.1%90-day growth+11,473 weekly downloads+25.1%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-react-hooks-addons weekly downloads growth on npm: +19.7% over 7 days, +13.1% over 30 days, +25.1% over 90 days.

Ranking history

eslint-plugin-react-hooks-addons npm ranking history: currently #747 (by weekly downloads).eslint-plugin-react-hooks-addonsnpm ranking · by weekly downloads · Last 90 days#747current rank#660#680#700#720#740#760#780#800#820Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-react-hooks-addons npm ranking history: currently #747 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 38, #7 (overall #747)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 10, #4 (overall #184)
ESLint plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (170)
Recent weekly downloads observations for eslint-plugin-react-hooks-addons
Date (UTC)Weekly downloadsChange vs. previous
57,260+1K
56,242+6K
50,209+6.2K
43,962-859
44,821-2.8K
47,602-87
47,689-131
47,820+249
47,571-4K
51,603-3.2K
54,780+3.3K
51,480+6.4K
45,097+2K
43,106—

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 Dec 6, 2026. See the methodology.