ESLint plugin (v2.2.0, active development) that lints package.json dependencies for issues like missing or mismatched engines, deprecated packages, or improper provenance. Requires Node >= 20.19 and ESLint >= 9.38. Released as needed with minor and patch updates. Differentiated from other ESLint plugins by focusing specifically on dependency metadata integrity rather than code style or security scanning.
npm install eslint-plugin-node-dependenciesVerified import paths — ran on the pinned version, not inferred.
Sets up the recommended rules for eslint-plugin-node-dependencies in an ESLint flat config file.
Migrate from .eslintrc.* to eslint.config.js using flat config format.
Update Node.js to ^20.19.0, ^22.13.0, or >=24.
Upgrade ESLint to v9.38.0 or later.
Pin exact version in package.json and test upgrades thoroughly.
Ensure eslint/json is installed if using JSON-related features.
npm install --save-dev eslint-plugin-node-dependencies
Use import nodeDependenciesPlugin from 'eslint-plugin-node-dependencies' and spread plugin.configs.recommended.
Switch to eslint.config.js with flat config; do not use 'extends' with plugin: prefix.
Wrap rules in an object with 'plugins' and 'rules' properties.