tooling.mdMarkdown, rendered
TypeScript Tooling (2026)
Core stack
- Compiler:
typescript(latest stable) - Linting:
eslint+typescript-eslint - Formatting: dedicated formatter (
prettierordprint) - Unit testing:
vitest - E2E/browser testing:
@playwright/testwhen browser behavior is relevant
Linting and formatting separation
- Keep linting focused on correctness, code quality, and maintainability.
- Keep formatting in a dedicated formatter.
typescript-eslintexplicitly recommends against using ESLint as the formatter.
ESLint setup direction
- Use flat config (
eslint.config.*) for modern ESLint. - Use
typescript-eslintrecommended/strict configs depending on project maturity. - Add typed linting where cost/performance tradeoffs are acceptable.
CI baseline
Run all three gates on pull requests:
npm run typecheck(tsc --noEmit)npm run lint(eslint .)npm run test(Vitest and/or Playwright suites)
Useful package scripts
{
"scripts": {
"typecheck": "tsc --noEmit",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "vitest run"
}
}
Sources
- TypeScript-ESLint Getting Started: https://typescript-eslint.io/getting-started/
- TypeScript-ESLint Formatting guidance: https://typescript-eslint.io/users/what-about-formatting/
- ESLint config files: https://eslint.org/docs/latest/use/configure/configuration-files
- ESLint getting started: https://eslint.org/docs/latest/use/getting-started
- Vitest guide: https://vitest.dev/guide/
- Playwright writing tests: https://playwright.dev/docs/writing-tests