A utility that extends lint-staged to run TypeScript type checking only on staged files, improving performance by avoiding full project rechecks. Currently at stable v0.2.1 with intermittent releases (last in May 2022). The key differentiator is that unlike tsc --noEmit on all files, it scopes type checking to the staged files, respecting tsconfig include and declarations. Minimal dependencies but requires lint-staged as peer. Suitable for CI and pre-commit hooks.
npm install lint-staged-tscNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure lint-staged to run TypeScript type checking on staged .ts/.tsx files using lint-staged-tsc.
Ensure typescript is in devDependencies (npm i -D typescript).
Verify that tsconfig.json includes the staged files. Adjust include patterns if needed.
Consider running full type check in CI or periodically.
Monitor for updates or consider alternatives like tsc-files or custom lint-staged task.
Run `npm install --save-dev lint-staged-tsc`
Configure lint-staged to use npx: `"npx lint-staged-tsc"` or ensure package is installed locally.