Lints package.json dependencies and devDependencies by comparing declared modules against actual usage (requires, execs in scripts). Currently v7.1.0, stable with infrequent releases. Supports Node.js 12, 14, 16. Unlike depcheck, it also inspects shell scripts and npm run scripts for obvious misuse. Provides auto-correct mode and YAML configuration.
npm install dependency-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run dependency-lint CLI to detect missing, unused, or mislabeled dependencies.
Migrate to depcheck or npx check-dependencies.
Use Node 12, 14, or 16, or downgrade to v6.
Run `npx dependency-lint --generate-config` to create a default configuration.
Ensure files are plain JavaScript/TypeScript without unsupported syntax. Ignore problematic files in configuration.
No dependency data recorded yet.