Lints or runs tests on only the files that have changed since the last push, using git to detect differences. Version 0.5.2 is the latest stable release. It integrates via git hooks (husky or built-in install script) and replaces #FILES# placeholders with changed file paths. Compared to lint-staged, it triggers on push rather than commit, allowing broader pre-push checks including full project type-checking. Written in JavaScript, ESM-only since v0.4.0, requires Node >= 10. Maintained by Steelbrain; fixes for Windows and stash handling were added in recent versions.
npm install lint-unpushedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install and configure lint-unpushed to run ESLint on changed JS/TS files plus full TypeScript check on push.
Update any scripts or hooks that reference `lint-unpushed` to `lint-unpushed-pre-push`.
Update config to Record<string, string|string[]> and include #FILES# where file list is needed.
Use `"prepare": "lint-unpushed-install"` instead of Husky.
Add a post-checkout hook using `lint-unpushed-post-checkout` to create the reference.
Upgrade to v0.5.2 or later.
Use npx lint-unpushed-pre-push or define commands in package.json scripts.
Run `npm install --save-dev lint-unpushed` and use npx or specify path in scripts.
Use `npx lint-unpushed-pre-push` not `git lint-unpushed`.