Skip to content
PluginStats

eslint-plugin-path weekly downloads statistics

By qDanik · npm · ESLint plugins

[![Biome](https://img.shields.io/badge/linting-biome-60a5fa?style=flat-square)](https://biomejs.dev) [![code style: biome](https://img.shields.io/badge/code_style-biome-60a5fa?style=flat-square)](https://biomejs.dev)

View on npm Fresh · Dec 6, 2026

eslint-plugin-path has 44,566 recorded weekly downloads on npm, an increase of 27.6% over the past 30 days, ranking #815 of 3,247 tracked listings.

Weekly downloads
44,566
Official API · Dec 5, 2026
7-day growth
+18.3%
+6.9K weekly downloads
30-day growth
+27.6%
+9.6K weekly downloads
90-day growth
+96.6%
+21.9K weekly downloads
Rank
#815
▲ 14 in 7 days

About eslint-plugin-path

eslint-plugin-path

Biome code style: biome

An ESLint plugin for enforcing consistent import paths across a project. It rewrites relative imports to absolute ones (or the reverse), based on the paths and baseUrl in your tsconfig.json / jsconfig.json.

Installation

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

# yarn
yarn add eslint-plugin-path --dev

ESLint 10+

This plugin requires ESLint 10 or later and Node.js ^20.19.0 || ^22.13.0 || >=24 — the same range ESLint 10 supports.

It uses the flat config format (eslint.config.js). The legacy .eslintrc format was removed in ESLint 10 and is not supported.

Basic usage
import eslintPluginPath from 'eslint-plugin-path';

export default [
  {
    files: ['**/*.{js,ts,jsx,tsx}'],
    plugins: {
      path: eslintPluginPath,
    },
    rules: {
      'path/no-relative-imports': [
        'error',
        {
          maxDepth: 2,
          suggested: false,
        },
      ],
    },
  },
];
Using defineConfig()
import { defineConfig } from 'eslint/config';
import eslintPluginPath from 'eslint-plugin-path';

export default defineConfig([
  {
    files: ['**/*.{js,ts,jsx,tsx}'],
    plugins: {
      path: eslintPluginPath,
    },
    rules: {
      'path/no-relative-imports': [
        'error',
        {
          maxDepth: 2,
          suggested: false,
        },
      ],
    },
  },
]);
Using presets
import eslintPluginPath from 'eslint-plugin-path';

export default [
  ...eslintPluginPath.configs.recommended,
];

Custom tsconfig/jsconfig paths

If you are using custom paths in your tsconfig.json or jsconfig.json file, you can specify the path to the configuration file in your ESLint settings:

import eslintPluginPath from 'eslint-plugin-path';

export default [
  {
    plugins: { path: eslintPluginPath },
    settings: {
      path: {
        config: 'tsconfig.json', // or 'jsconfig.json'
      },
    },
    rules: {
      'path/no-relative-imports': 'error',
    },
  },
];

Configuration

Enable the rules in your ESLint flat configuration:

import eslintPluginPath from 'eslint-plugin-path';

export default [
  {
    plugins: { path: eslintPluginPath },
    rules: {
      'path/no-relative-imports': 'error',
    },
  },
];

Or use the recommended preset:

import eslintPluginPath from 'eslint-plugin-path';

export default [
  ...eslintPluginPath.configs.recommended,
];

What is checked

All three rules inspect the specifier of these forms:

import x from '../../components/button';   // static import
import('../../components/button');         // dynamic import
require('../../components/button');        // CommonJS require

Re-export declarations are not checked:

export * from '../../components/button';        // not reported
export { Button } from '../../components/button'; // not reported

Bare specifiers that resolve inside node_modules (e.g. react) are always skipped.

Rules

✔ included in the "recommended" preset

🔧 fixable using the --fix command line option

💡 provides editor suggestions

NameDescription
✔🔧💡no-relative-importsdisallow relative imports of files where absolute is preferred
🔧💡no-absolute-importsdisallow absolute imports of files where relative is preferred
🔧💡only-absolute-importsdisallow relative imports of files through the whole project

Presets

  • recommended — enables no-relative-imports with { maxDepth: 1, suggested: true }. Note this is stricter than the rule's own defaults ({ maxDepth: 2, suggested: false }).

recommended is the only preset. The three rules express mutually exclusive policies, so no single config can enable them together — pick the one rule that matches your project and configure it explicitly.

Removed in 3.0.0: the all preset. It never enabled all rules — it enabled only no-relative-imports, with weaker settings than recommended. See the CHANGELOG.

License

MIT

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • absolute-path
  • path
  • relative-import

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-path weekly downloads on npm, last 90 days: 44,566 weekly downloads as of Dec 5, 2026, +96.6% over 90 days.eslint-plugin-pathWeekly downloads on npm · Last 90 days44,566downloads / week+96.6% over 90 days010K20K30K40K50KSep 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-path weekly downloads on npm, last 90 days: 44,566 weekly downloads as of Dec 5, 2026, +96.6% over 90 days.

7/30/90-day growth

eslint-plugin-path weekly downloads growth on npm: +18.3% over 7 days, +27.6% over 30 days, +96.6% over 90 days.eslint-plugin-pathWeekly downloads growth on npm44,566downloads / week now7-day growth+6,889 weekly downloads+18.3%30-day growth+9,648 weekly downloads+27.6%90-day growth+21,897 weekly downloads+96.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-path weekly downloads growth on npm: +18.3% over 7 days, +27.6% over 30 days, +96.6% over 90 days.

Ranking history

eslint-plugin-path npm ranking history: currently #815 (by weekly downloads).eslint-plugin-pathnpm ranking · by weekly downloads · Last 90 days#815current rank#800#820#840#860#880#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-path npm ranking history: currently #815 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 11, #1 (overall #201)
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-path
Date (UTC)Weekly downloadsChange vs. previous
44,566+430
44,136+1.5K
42,607+399
42,208+253
41,955+3K
38,960+472
38,488+811
37,677+82
37,595-101
37,696+230
37,466+2.2K
35,251+207
35,044+192
34,852—

Similar npm ESLint plugins plugins

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