{"id":25867,"library":"lint-diff","title":"lint-diff","description":"lint-diff is a CLI tool that runs ESLint only on lines changed within a specified Git commit range, filtering out pre-existing lint errors. Version 1.2.1 is the latest stable release; the project appears to be in maintenance mode with no recent updates. It differs from lint-staged by working on committed changes, making it suitable for CI environments like Travis. Requires eslint 4.x as a peer dependency.","status":"maintenance","version":"1.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/grvcoelho/lint-diff","tags":["javascript","linter","eslint","diff","git"],"install":[{"cmd":"npm install lint-diff","lang":"bash","label":"npm"},{"cmd":"yarn add lint-diff","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-diff","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package provides a binary, not a programmatic API. Common mistake is running without a commit range; it defaults to HEAD.","wrong":"lint-diff","symbol":"lint-diff (CLI)","correct":"npx lint-diff HEAD~3..HEAD"}],"quickstart":{"code":"npx lint-diff HEAD~3..HEAD","lang":"javascript","description":"Shows how to run lint-diff on the last 3 commits using npx."},"warnings":[{"fix":"Install eslint: npm install eslint --save-dev and ensure .eslintrc exists.","message":"ESLint must be installed separately and configured via .eslintrc.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use eslint@4.x.","message":"Only eslint 4.x is supported as a peer dependency.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Verify the commit range is correct and contains changes.","message":"lint-diff fails silently if the git commit range is invalid or no changes are detected.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install eslint@4.x --save-dev","cause":"eslint is not installed.","error":"Cannot find module 'eslint'"},{"fix":"Reinstall eslint and ensure it's in node_modules.","cause":"Missing or broken installation of eslint.","error":"Error: Cannot find module './lib/cli'","affected_versions":">=1.0.0"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}