A lightweight utility (v0.2.0) that integrates TypeScript compiler checking into lint-staged workflows. Unlike running `tsc --noEmit` on the whole project, it only checks staged files by leveraging the project's `tsconfig.json`. Release cadence is low/irregular. Key differentiators: no configuration overhead, respects tsconfig settings, avoids rechecking unchanged files, and works with any lint-staged setup.
npm install tsc-lint-stagedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures lint-staged to run tsc-lint-staged on staged .ts files, checking TypeScript compilation without emitting output.
Convert project to ESM or use a dynamic import: const tscLintStaged = await import('tsc-lint-staged');Manually specify tsconfig path using environment variable TSC_LINT_STAGED_TSCONFIG_PATH if needed.
Avoid relying on `maybe` for production code.
Run `npm install --save-dev tsc-lint-staged` and ensure it is in devDependencies.
Use dynamic import: const tscLintStaged = (await import('tsc-lint-staged')).default;Install @types/tsc-lint-staged or add a declaration file: declare module 'tsc-lint-staged';