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.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package provides a binary, not a programmatic API. Common mistake is running without a commit range; it defaults to HEAD.
Shows how to run lint-diff on the last 3 commits using npx.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.