eslint-plugin-require-path-exists weekly downloads statistics
By BohdanTkachenko · npm · ESLint plugins
Checks all require path's to exist as files
eslint-plugin-require-path-exists has 59,848 recorded weekly downloads on npm, ranking #634 of 2,644 tracked listings.
About eslint-plugin-require-path-exists
This repository will give access to new rules for the ESLint tool. You should use it only if you are developing a CommonJS application. It checks for require() function usage (or for import, if you're using ES6 syntax).
Features
- Supports both
require()and ES6importsyntax - Supports aliases in webpack
- Supports different file extensions
- Works in Atom with
linter-eslintpackage
Usage
-
Install
eslint-plugin-require-path-existsas a dev-dependency:npm install --save-dev eslint-plugin-require-path-exists -
Enable the plugin by adding it to the
pluginsand start from default (recommended) configuration inextendsin.eslintrc:{ "extends": [ "plugin:require-path-exists/recommended" ], "plugins": [ "require-path-exists" ] } -
You can also configure these rules in your
.eslintrc. All rules defined in this plugin have to be prefixed by 'require-path-exists/'{ "plugins": [ "require-path-exists" ], "rules": { "require-path-exists/notEmpty": 2, "require-path-exists/tooManyArguments": 2, "require-path-exists/exists": [ 2, { "extensions": [ "", ".jsx", ".es.js", ".jsx", ".json5", ".es", ".es6", ".coffee" ], "webpackConfigPath": "webpack.config.js" }] }
] } ```
Rules
| Name | Description | Default Configuration |
|---|---|---|
| require-path-exists/notEmpty | You should not call require() without arguments or with empty argument | 2 |
| require-path-exists/tooManyArguments | You should pass only one argument to require() function | 2 |
| require-path-exists/exists | You should only pass existing paths to require() | [ 2, { "extensions": [ "", ".js", ".json", ".node" ], "webpackConfigPath": null }] |
Changelog
- 1.1.5: Use resolve instead of some functions (thanks to @dominicbarnes)
- 1.1.4: Correctly exec webpack config in Atom
- 1.1.3: Output errors when trying to load webpack config
- 1.1.2: In order to have aliases working you now should provide webpackConfigPath config value.
- 1.1.1: Correctly resolve node built-in modules, using builtin-modules npm package (thanks to @antialias)
- 1.1.0: Resolving of webpack file extensions is not supported anymore (thanks to @lilianammmatos). Please manually provide extensions to plugin config instead.
TODO
- Tests coverage.
- Check in different CommonJS environments (currently only tested in NodeJS and webpack).
License
MIT
Description from the npm listing.
- eslint
- nodejs
- webpack
- browserify
- require
- path
- eslint-plugin
- eslintplugin
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (1)Similar npm ESLint plugins plugins
All 20 eslint-plugin-require-path-exists alternativesData 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-require-path-exists. First seen Oct 28, 2026; last successful collection Oct 28, 2026. See the methodology.
