{"id":25879,"library":"lint-staged-tsc","title":"lint-staged-tsc","description":"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.","status":"active","version":"0.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/Kontenty/lint-staged-tsc","tags":["javascript","node","typescript","lint-staged"],"install":[{"cmd":"npm install lint-staged-tsc","lang":"bash","label":"npm"},{"cmd":"yarn add lint-staged-tsc","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-staged-tsc","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; the utility is designed to be run as a lint-staged task","package":"lint-staged","optional":false}],"imports":[{"note":"This is a CLI tool invoked by lint-staged, not a library. Do not import in JavaScript code.","wrong":"const lintStagedTsc = require('lint-staged-tsc')","symbol":"lint-staged-tsc","correct":"// No import needed; configure in lint-staged config as a command string"}],"quickstart":{"code":"{\n  \"lint-staged\": {\n    \"**/*.{ts,tsx}\": \"lint-staged-tsc\"\n  }\n}","lang":"javascript","description":"Configure lint-staged to run TypeScript type checking on staged .ts/.tsx files using lint-staged-tsc."},"warnings":[{"fix":"Ensure typescript is in devDependencies (npm i -D typescript).","message":"This tool requires TypeScript to be installed as a devDependency. It uses the local tsc binary.","severity":"gotcha","affected_versions":">=0.0.2"},{"fix":"Verify that tsconfig.json includes the staged files. Adjust include patterns if needed.","message":"The tool relies on the tsconfig.json include/exclude configuration. If your tsconfig doesn't cover staged files, type checking may be skipped.","severity":"gotcha","affected_versions":">=0.0.2"},{"fix":"Consider running full type check in CI or periodically.","message":"This is not a replacement for full tsc --noEmit. It only checks staged files; errors in non-staged files will not be caught until they are staged.","severity":"gotcha","affected_versions":">=0.0.2"},{"fix":"Monitor for updates or consider alternatives like tsc-files or custom lint-staged task.","message":"Project has seen no updates since May 2022. May not support newer TypeScript versions or lint-staged breaking changes.","severity":"deprecated","affected_versions":">=0.2.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev lint-staged-tsc`","cause":"Package not installed or not in node_modules","error":"Cannot find module 'lint-staged-tsc'"},{"fix":"Configure lint-staged to use npx: `\"npx lint-staged-tsc\"` or ensure package is installed locally.","cause":"lint-staged may be running in a shell that doesn't have the node_modules/.bin in PATH","error":"lint-staged-tsc: command not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}