Registry / testing / eslint-plugin-implicit-dependencies

eslint-plugin-implicit-dependencies

JSON →
library1.1.1jsnpmunverified

ESLint plugin (v1.1.1) that flags imports or require() calls to modules not listed in the project's package.json dependencies. Uses the 'no-implicit' rule to prevent accidental reliance on transitive dependencies. Lightweight, no runtime dependencies, works with both CJS require and ES import syntax. Differentiates from similar plugins by focusing solely on implicit dependency detection with minimal configuration.

npm install eslint-plugin-implicit-dependencies
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-IMPL
E
eslint-plugin-implicit-dependencies
testingjavascriptv1.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
plugins: ['implicit-dependencies']
plugins: ['eslint-plugin-implicit-dependencies']
ESLint plugin naming convention allows omitting the eslint-plugin- prefix.
no-implicit rule
rules: { 'implicit-dependencies/no-implicit': 'error' }
rules: { 'no-implicit': 'error' }
Rule is namespaced under the plugin. Always use the full 'implicit-dependencies/no-implicit' key.
CommonJS require
require('eslint-plugin-implicit-dependencies')
For programmatic use in .eslintrc.js or config file. Not recommended; prefer string plugin names.

Configure ESLint to error on any import not listed in package.json dependencies or devDependencies.

// .eslintrc.json { "plugins": ["implicit-dependencies"], "rules": { "implicit-dependencies/no-implicit": ["error", { "dev": true }] } }
Debug
Known issues
gotchaBy default, only 'dependencies' are checked. Transient dependencies in devDependencies or peerDependencies are ignored unless explicitly configured.
fix
Add options: { dev: true, peer: true, optional: true } to the rule.
affects: >=1.0.0
gotchaThe plugin does not handle dynamic require() or import() expressions; only static imports and requires are detected.
fix
Use static import statements or add the dynamic module to package.json explicitly.
affects: >=1.0.0
gotchaMonorepo setups: Only the root package.json is read; subpackage dependencies may be incorrectly flagged.
fix
Run ESLint separately per package, or use a monorepo-aware alternative.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'implicit-dependencies': Cannot find module 'eslint-plugin-implicit-dependencies'
Plugin not installed locally.
fix
npm install eslint-plugin-implicit-dependencies --save-dev
Definition for rule 'implicit-dependencies/no-implicit' was not found
Plugin not listed in 'plugins' section of ESLint config.
fix
Add 'implicit-dependencies' to the plugins array.
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-implicit-dependencies — npm install eslint-plugin-implicit-dependencies · libregistry