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-dependenciesVerified import paths — ran on the pinned version, not inferred.
Configure ESLint to error on any import not listed in package.json dependencies or devDependencies.
Add options: { dev: true, peer: true, optional: true } to the rule.Use static import statements or add the dynamic module to package.json explicitly.
Run ESLint separately per package, or use a monorepo-aware alternative.
npm install eslint-plugin-implicit-dependencies --save-dev
Add 'implicit-dependencies' to the plugins array.
No dependency data recorded yet.