{"id":19786,"library":"eslint-plugin-implicit-dependencies","title":"eslint-plugin-implicit-dependencies","description":"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.","status":"active","version":"1.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/lennym/eslint-plugin-implicit-dependencies","tags":["javascript","eslint","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-implicit-dependencies","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-implicit-dependencies","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-implicit-dependencies","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESLint plugin naming convention allows omitting the eslint-plugin- prefix.","wrong":"plugins: ['eslint-plugin-implicit-dependencies']","symbol":"default","correct":"plugins: ['implicit-dependencies']"},{"note":"Rule is namespaced under the plugin. Always use the full 'implicit-dependencies/no-implicit' key.","wrong":"rules: { 'no-implicit': 'error' }","symbol":"no-implicit rule","correct":"rules: { 'implicit-dependencies/no-implicit': 'error' }"},{"note":"For programmatic use in .eslintrc.js or config file. Not recommended; prefer string plugin names.","wrong":"","symbol":"CommonJS require","correct":"require('eslint-plugin-implicit-dependencies')"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"implicit-dependencies\"],\n  \"rules\": {\n    \"implicit-dependencies/no-implicit\": [\"error\", { \"dev\": true }]\n  }\n}","lang":"javascript","description":"Configure ESLint to error on any import not listed in package.json dependencies or devDependencies."},"warnings":[{"fix":"Add options: { dev: true, peer: true, optional: true } to the rule.","message":"By default, only 'dependencies' are checked. Transient dependencies in devDependencies or peerDependencies are ignored unless explicitly configured.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use static import statements or add the dynamic module to package.json explicitly.","message":"The plugin does not handle dynamic require() or import() expressions; only static imports and requires are detected.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run ESLint separately per package, or use a monorepo-aware alternative.","message":"Monorepo setups: Only the root package.json is read; subpackage dependencies may be incorrectly flagged.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install eslint-plugin-implicit-dependencies --save-dev","cause":"Plugin not installed locally.","error":"Error: Failed to load plugin 'implicit-dependencies': Cannot find module 'eslint-plugin-implicit-dependencies'"},{"fix":"Add 'implicit-dependencies' to the plugins array.","cause":"Plugin not listed in 'plugins' section of ESLint config.","error":"Definition for rule 'implicit-dependencies/no-implicit' was not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}