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.
npm install lint-diffNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run lint-diff on the last 3 commits using npx.
Install eslint: npm install eslint --save-dev and ensure .eslintrc exists.
Use eslint@4.x.
Verify the commit range is correct and contains changes.
Run: npm install eslint@4.x --save-dev
Reinstall eslint and ensure it's in node_modules.
No dependency data recorded yet.