typescript-tooling
Installation
SKILL.md
TypeScript Tooling
Priority: P1 (HIGH)
Implementation Guidelines
- Compiler: Use
tscfor CI builds;esbuildorts-nodefor development. - Linting: Enforce
ESLintwith@typescript-eslint/recommended. Enable strict type checking. - Formatting: Mandate
Prettiervialint-stagedand.prettierrc. - Testing: Use
Vitest(orJest) for unit/integration testing. Target > 80% line coverage. - Builds: Use
tsup(library bundling) orVite(web applications). - TypeScript Config: Aim for
strict: truelong-term. For existing projects, migrate incrementally: start withstrictNullChecks, thennoImplicitAny,strictFunctionTypes. Do NOT flipstrict: truein one step. - CI/CD: Always run
tsc --noEmitin build pipeline to catch type errors. - Error Suppression: Favor
@ts-expect-errorover@ts-ignorefor documented edge-cases.
ESLint Configuration
Enable @typescript-eslint/recommended at minimum. When strict: false in tsconfig, no-unsafe-* rules may produce excessive noise — suppress selectively with @ts-expect-error rather than disabling globally.
See reference for common linting issues (request typing, unused params, test mock typing) and tsconfig migration examples.