{"id":25164,"library":"dependency-lint","title":"dependency-lint","description":"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.","status":"deprecated","version":"7.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/charlierudolph/dependency-lint","tags":["javascript","dependency","devDependency","lint"],"install":[{"cmd":"npm install dependency-lint","lang":"bash","label":"npm"},{"cmd":"yarn add dependency-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add dependency-lint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package is CLI-only. No programmatic import exists. Use child_process.exec in Node.","wrong":"import dependencyLint from 'dependency-lint'","symbol":"dependencyLint (CLI only, no programmatic API)","correct":"Call via npx dependency-lint or node_modules/.bin/dependency-lint"}],"quickstart":{"code":"// No JavaScript API. Use CLI:\n// Run `npx dependency-lint` in project root.\n// Auto-correct: `npx dependency-lint --auto-correct`","lang":"javascript","description":"Run dependency-lint CLI to detect missing, unused, or mislabeled dependencies."},"warnings":[{"fix":"Migrate to depcheck or npx check-dependencies.","message":"Package last updated September 2021. Node.js support limited to versions 12, 14, 16. Alternative: use `depcheck` or `eslint-plugin-import` for more modern linting.","severity":"deprecated","affected_versions":">=7.0"},{"fix":"Use Node 12, 14, or 16, or downgrade to v6.","message":"Version 7 requires Node 12+. Older versions may fail on unsupported Node versions.","severity":"breaking","affected_versions":"7.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npx dependency-lint --generate-config` to create a default configuration.","cause":"Missing dependency-lint.yml in project root.","error":"dependency-lint: no configuration file found. Use --generate-config to create one."},{"fix":"Ensure files are plain JavaScript/TypeScript without unsupported syntax. Ignore problematic files in configuration.","cause":"JavaScript file contains syntax not supported by the parser (e.g., Flow, JSX without proper transformer).","error":"Could not parse /path/to/file.js: Unexpected token"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}