Skip to content
PluginStats

eslint-plugin-react-hooks weekly downloads statistics

By facebook (4 listings) · npm · ESLint plugins

ESLint rules for React Hooks

View on npm Fresh · Dec 6, 2026

eslint-plugin-react-hooks has 111,993,623 recorded weekly downloads on npm, a decrease of 4.6% over the past 30 days, ranking #9 of 3,247 tracked listings.

Weekly downloads
111,993,623
Official API · Dec 5, 2026
7-day growth
+1.6%
+1.7M weekly downloads
30-day growth
-4.6%
-5.4M weekly downloads
90-day growth
+34.2%
+28.5M weekly downloads
Rank
#9
▼ 1 in 7 days

About eslint-plugin-react-hooks

eslint-plugin-react-hooks

The official ESLint plugin for React which enforces the Rules of React and other best practices.

Installation

Assuming you already have ESLint installed, run:

# npm
npm install eslint-plugin-react-hooks --save-dev

# yarn
yarn add eslint-plugin-react-hooks --dev
Flat Config (eslint.config.js|ts)

Add the recommended config for all recommended rules:

// eslint.config.js
import reactHooks from 'eslint-plugin-react-hooks';
import { defineConfig } from 'eslint/config';

export default defineConfig([
  reactHooks.configs.flat.recommended,
]);

If you want to try bleeding edge experimental compiler rules, use recommended-latest.

// eslint.config.js
import reactHooks from 'eslint-plugin-react-hooks';
import { defineConfig } from 'eslint/config';

export default defineConfig([
  reactHooks.configs.flat['recommended-latest'],
]);
Legacy Config (.eslintrc)

If you are still using ESLint below 9.0.0, the recommended preset can also be used to enable all recommended rules.

{
  "extends": ["plugin:react-hooks/recommended"],
  // ...
}

Custom Configuration

If you want more fine-grained configuration, you can instead choose to enable specific rules. However, we strongly encourage using the recommended presets — see above — so that you will automatically receive new recommended rules as we add them in future versions of the plugin.

Flat Config (eslint.config.js|ts)
import reactHooks from 'eslint-plugin-react-hooks';

export default [
  {
    files: ['**/*.{js,jsx}'],
    plugins: { 'react-hooks': reactHooks },
    // ...
    rules: {
      // Core hooks rules
      'react-hooks/rules-of-hooks': 'error',
      'react-hooks/exhaustive-deps': 'warn',

      // React Compiler rules
      'react-hooks/config': 'error',
      'react-hooks/error-boundaries': 'error',
      'react-hooks/gating': 'error',
      'react-hooks/globals': 'error',
      'react-hooks/immutability': 'error',
      'react-hooks/preserve-manual-memoization': 'error',
      'react-hooks/purity': 'error',
      'react-hooks/refs': 'error',
      'react-hooks/set-state-in-effect': 'error',
      'react-hooks/set-state-in-render': 'error',
      'react-hooks/static-components': 'error',
      'react-hooks/unsupported-syntax': 'warn',
      'react-hooks/use-memo': 'error',
      'react-hooks/incompatible-library': 'warn',
    }
  },
];
Legacy Config (.eslintrc)
{
  "plugins": [
    // ...
    "react-hooks"
  ],
  "rules": {
    // ...
    // Core hooks rules
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "warn",

    // React Compiler rules
    "react-hooks/config": "error",
    "react-hooks/error-boundaries": "error",
    "react-hooks/gating": "error",
    "react-hooks/globals": "error",
    "react-hooks/immutability": "error",
    "react-hooks/preserve-manual-memoization": "error",
    "react-hooks/purity": "error",
    "react-hooks/refs": "error",
    "react-hooks/set-state-in-effect": "error",
    "react-hooks/set-state-in-render": "error",
    "react-hooks/static-components": "error",
    "react-hooks/unsupported-syntax": "warn",
    "react-hooks/use-memo": "error",
    "react-hooks/incompatible-library": "warn"
  }
}

Advanced Configuration

exhaustive-deps can be configured to validate dependencies of custom Hooks with the additionalHooks option. This option accepts a regex to match the names of custom Hooks that have dependencies.

{
  rules: {
    // ...
    "react-hooks/exhaustive-deps": ["warn", {
      additionalHooks: "(useMyCustomHook|useMyOtherCustomHook)"
    }]
  }
}

We suggest to use this option very sparingly, if at all. Generally saying, we recommend most custom Hooks to not use the dependencies argument, and instead provide a higher-level API that is more focused around a specific use case.

Valid and Invalid Examples

Please refer to the Rules of Hooks documentation to learn more about this rule.

License

MIT

Description from the npm listing.

  • eslint
  • eslint-plugin
  • eslintplugin
  • react

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 weekly downloads on npm, last 90 days: 111,993,623 weekly downloads as of Dec 5, 2026, +34.2% over 90 days.eslint-plugin-react-hooksWeekly downloads on npm · Last 90 days111,993,623downloads / week+34.2% over 90 days020M40M60M80M100M120M140MSep 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 weekly downloads on npm, last 90 days: 111,993,623 weekly downloads as of Dec 5, 2026, +34.2% over 90 days.

7/30/90-day growth

eslint-plugin-react-hooks weekly downloads growth on npm: +1.6% over 7 days, -4.6% over 30 days, +34.2% over 90 days.eslint-plugin-react-hooksWeekly downloads growth on npm111,993,623downloads / week now7-day growth+1,717,656 weekly downlo…+1.6%30-day growth-5,376,323 weekly downlo…-4.6%90-day growth+28,544,680 weekly downl…+34.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-react-hooks weekly downloads growth on npm: +1.6% over 7 days, -4.6% over 30 days, +34.2% over 90 days.

Ranking history

eslint-plugin-react-hooks npm ranking history: currently #9 (by weekly downloads).eslint-plugin-react-hooksnpm ranking · by weekly downloads · Last 90 days#9current rank#4#5#6#7#8#9#10#11Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-react-hooks npm ranking history: currently #9 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 1, #5 (overall #5)
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
Date (UTC)Weekly downloadsChange vs. previous
111,993,623-10M
121,987,329+4.3M
117,667,134+4.2M
113,479,680+2.3M
111,214,458+2M
109,180,641-442.7K
109,623,302-652.7K
110,275,967-1.5M
111,733,025-3.4M
115,167,536-3.6M
118,797,158-2.4M
121,188,748-1.5M
122,695,542-1M
123,734,780—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-react-hooks alternatives

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. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.