Skip to content
PluginStats

eslint-plugin-import-path weekly downloads statistics

By andrienko · npm · ESLint plugins

eslint plugin to check import paths via regex

View on npm Fresh · Oct 18, 2026

eslint-plugin-import-path has 31,355 recorded weekly downloads on npm, a decrease of 10.6% over the past 30 days, ranking #677 of 2,322 tracked listings.

Weekly downloads
31,355
Official API · Oct 18, 2026
7-day growth
-25.7%
-10.9K weekly downloads
30-day growth
-10.6%
-3.7K weekly downloads
90-day growth
-54.6%
-37.7K weekly downloads
Rank
#677
Among tracked npm listings

About eslint-plugin-import-path

eslint-plugin-import-path

A tiny ESLint plugin to check import paths for errors. Currently it allows you do two simple things: check strings for regexes (you can define these) and check imports depth.

WebStorm sometimes tends to do weird things - it does not respect module root sometimes and adds something like ../../../../stores/SettingStore instead of stores/SettingStore - and also it sometimes adds /index to the end of filenames after refactoring - so my import Component from 'Component' turns into import Component from 'Component/index'. I tend to miss these and I don't like to see them in my code.

There's a gorgeous eslint-plugin-import, but it lacked these two simple features, so I wrote this one. It is even somewhat covered with unit tests and should be stable enough to use during development.

Usage

Install it: (of course you have to have eslint installed)

npm install eslint-plugin-import-path --save-dev

Add import-path to the plugins section of your .eslintrc configuration file.

{
  "plugins": ["import-path"]
}

Configure the rules you need in rules section of .eslintrc.

{
  "plugins": ["import-path"],
  
  "rules": {
    "import-path/parent-depth": ["warn", 2],
    "import-path/forbidden": ["error", ["/index$"]]
  }
}

Rules

import-path/forbidden

Basically a regex match. Lets you specify a regex string (or a number of them) to highlight import paths that match it. Couple examples:

You can simply pass a regex string as a second argument:

"import-path/forbidden": ["warning", "/index$"]

Or an array of regex strings:

"import-path/forbidden": ["error", ["/index$", "badword"]]

Or an array of objects. In case you use objects - its match property should contain regex string. You can also provide message to be displayed for this very match

"import-path/forbidden": ["warning", [
  {
    "match": "/index$",
    "message": "Index on the end of path is redundant"
  }
]]

With objects can also use contains prop to define a string that will be checked for occurrence. It is not a regex, but a simple string the path will be checked for.

"import-path/forbidden": ["warning", [
  {
    "contains": "badword",
    "message": "Do not use paths containing 'badword'"
  },
]]
import-path/parent-depth

The rule checks if you used too many parent directory references.

Following rule:

"import-path/parent-depth": ["warn", 4]

Will cause a warning here:

import whatever from '../../../../../something';

...but won't cause it here:

import whatever from '../../something'

...Of course, you could achieve this using forbidden rule, too:

"import-path/forbidden": ["warning", [
  {
    "match": "^(\.\./){2,}",
    "message": "More than two parent directories referenced"
  },
]]
Export paths

Oh, export paths are also checked. Something like export { Whatever } from 'somewhere/index' will also get checked.

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-import-path weekly downloads on npm, last 90 days: 31,355 weekly downloads as of Oct 18, 2026, -54.6% over 90 days.eslint-plugin-import-pathWeekly downloads on npm · Last 90 days31,355downloads / week-54.6% 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-import-path weekly downloads on npm, last 90 days: 31,355 weekly downloads as of Oct 18, 2026, -54.6% over 90 days.

7/30/90-day growth

eslint-plugin-import-path weekly downloads growth on npm: -25.7% over 7 days, -10.6% over 30 days, -54.6% over 90 days.eslint-plugin-import-pathWeekly downloads growth on npm31,355downloads / week now7-day growth-10,856 weekly downloads-25.7%30-day growth-3,728 weekly downloads-10.6%90-day growth-37,672 weekly downloads-54.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
eslint-plugin-import-path weekly downloads growth on npm: -25.7% over 7 days, -10.6% over 30 days, -54.6% over 90 days.

Ranking history

eslint-plugin-import-path npm ranking history: currently #677 (by weekly downloads).eslint-plugin-import-pathnpm ranking · by weekly downloads · Last 90 days#677current rank#645#650#655#660#665#670#675#680Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
eslint-plugin-import-path npm ranking history: currently #677 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins256 listings · 13 pages · page 8, #17 (overall #157)
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-import-path
Date (UTC)Weekly downloadsChange vs. previous
31,355-870
32,225-5K
37,190+6.2K
31,033-11.6K
42,621-10K
52,6070
52,607+10.4K
42,211+1.4K
40,818+3.6K
37,176+5.3K
31,888+5.6K
26,295+5.4K
20,874-3K
23,868—

Similar npm ESLint plugins plugins

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