eslint-plugin-path weekly downloads statistics
By qDanik · npm · ESLint plugins
[](https://biomejs.dev) [](https://biomejs.dev)
eslint-plugin-path has 10,962 recorded weekly downloads on npm, a decrease of 47.6% over the past 30 days.
It ranks #886 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -88.8%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About eslint-plugin-path
eslint-plugin-path
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
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
Using defineConfig()
Using presets
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:
Configuration
Enable the rules in your ESLint flat configuration:
Or use the recommended preset:
What is checked
All three rules inspect the specifier of these forms:
Re-export declarations are not checked:
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
| | | | Name | Description |
| ✔ | 🔧 | 💡 | no-relative-imports | disallow relative imports of files where absolute is preferred | | | 🔧 | 💡 | no-absolute-imports | disallow absolute imports of files where relative is preferred | | | 🔧 | 💡 | only-absolute-imports |disallow 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
Where eslint-plugin-path sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm ESLint plugins plugins
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 Oct 18, 2026. See the methodology.