Skip to content
PluginStats

eslint-plugin-restrict-imports weekly downloads statistics

By billlynch · npm · ESLint plugins

Eslint plugin to ban specified imports in specified directories

View on npm Fresh · Oct 18, 2026

eslint-plugin-restrict-imports has 31,261 recorded weekly downloads on npm, an increase of 1.6% over the past 30 days, ranking #681 of 2,322 tracked listings.

Weekly downloads
31,261
Official API · Oct 18, 2026
7-day growth
-18.4%
-7K weekly downloads
30-day growth
+1.6%
+498 weekly downloads
90-day growth
-53.7%
-36.2K weekly downloads
Rank
#681
Among tracked npm listings

About eslint-plugin-restrict-imports

eslint-plugin-restrict-imports

CircleCI

Eslint plugin to ban specified imports in specified directories

This is useful to ban not using a barrelled import in multi-package repositories.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-restrict-imports:

$ npm install eslint-plugin-restrict-imports --save-dev

Usage

Add restrict-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["restrict-imports"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "restrict-imports/restrict-imports": [
            "error",
            {
                "../../clientA(.*)": {
                    "locations": ["(.*)/clientB(.*)"],
                    "message": "Do not import client A in client B"
                },
                "(.*)/common/(.*)": {
                    "locations": ["(.*)/client(.*)"],
                    "message": "Use barrelled import '@common'"
                }
            }
        ]
    }
}

Rule configuration:

[
    "error",
    {
        "../../clientA(.*)": {                              // regex for the import path to ban
            "locations": ["(.*)/clientB(.*)"],              // regex for the absoulte file names to enforce in
            "message": "Do not import client A in client B" // optional - customised error message
        }
    }
]

Default Rule configuration:

[
    "error",
    {
        "/(.*)": {                // Ban absoulte imports
            "locations": ["(.*)"] // in all files
        }
    }
]

Supported Rules

  • restrict-imports - Ban imports from a location in any directory.

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin

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-restrict-imports weekly downloads on npm, last 90 days: 31,261 weekly downloads as of Oct 18, 2026, -53.7% over 90 days.eslint-plugin-restrict-importsWeekly downloads on npm · Last 90 days31,261downloads / week-53.7% over 90 days010K20K30K40K50K60K70KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
eslint-plugin-restrict-imports weekly downloads on npm, last 90 days: 31,261 weekly downloads as of Oct 18, 2026, -53.7% over 90 days.

7/30/90-day growth

eslint-plugin-restrict-imports weekly downloads growth on npm: -18.4% over 7 days, +1.6% over 30 days, -53.7% over 90 days.eslint-plugin-restrict-importsWeekly downloads growth on npm31,261downloads / week now7-day growth-7,041 weekly downloads-18.4%30-day growth+498 weekly downloads+1.6%90-day growth-36,232 weekly downloads-53.7%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
eslint-plugin-restrict-imports weekly downloads growth on npm: -18.4% over 7 days, +1.6% over 30 days, -53.7% over 90 days.

Ranking history

eslint-plugin-restrict-imports npm ranking history: currently #681 (by weekly downloads).eslint-plugin-restrict-importsnpm ranking · by weekly downloads · Last 90 days#681current rank#660#665#670#675#680#685Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
eslint-plugin-restrict-imports npm ranking history: currently #681 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 35, #1 (overall #681)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins256 listings · 13 pages · page 8, #19 (overall #159)
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 (122)
Recent weekly downloads observations for eslint-plugin-restrict-imports
Date (UTC)Weekly downloadsChange vs. previous
31,261+1.5K
29,758-4.6K
34,320+6K
28,303-10.6K
38,928-9.3K
48,2140
48,214+9.9K
38,302+1.5K
36,836+3.6K
33,243+4.2K
29,085+6K
23,069+5.6K
17,504-2.2K
19,728—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-restrict-imports 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-restrict-imports. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.