Registry / testing / lint-diff

lint-diff

JSON →
library1.2.1jsnpmunverified

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.

testing
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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.

npx lint-diff HEAD~3..HEAD

Shows how to run lint-diff on the last 3 commits using npx.

npx lint-diff HEAD~3..HEAD
lint-diff --version
Debug
Known footguns
gotchaESLint must be installed separately and configured via .eslintrc.
breakingOnly eslint 4.x is supported as a peer dependency.
gotchalint-diff fails silently if the git commit range is invalid or no changes are detected.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
ahrefsbot
4
claudebot
4
gptbot
3
bingbot
1
Resources