ESLint plugin with a single rule that validates ES6 import statements reference packages listed in the local package.json dependencies, devDependencies, or peerDependencies. Version 1.0.3 has no recent updates. It differs from similar plugins by focusing solely on ES6 imports (not require) and checking against package.json fields. No longer actively maintained.
npm install eslint-plugin-require-in-packageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures ESLint to use the require-in-package rule, which will error if an import is not listed in package.json.
Use ESLint flat config or update to modern parser settings.
Use a separate rule or plugin for require calls (e.g., eslint-plugin-import).
Run npm ls to verify a dependency is directly listed in package.json.
Add the missing package to the appropriate dependency section in package.json, e.g., npm install b --save.