typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.
Overview
typescript-eslint is a monorepo of packages that let ESLint and related tools understand TypeScript. The parser and companion services read TypeScript source so linters and formatters such as Prettier can analyze typed code, not only plain JavaScript.
The project provides a large rule set covering practices, likely bugs, and style in modern JavaScript and TypeScript. Typed linting uses TypeScript's type APIs for rules that inspect deeper semantics than syntax alone. Documentation and a playground are published on the project website.
Teams add the packages to an existing ESLint setup in Node projects. A Project Service approach is documented to simplify typed linting configuration on large codebases. The work is community-maintained with sponsor support from tooling vendors.
Because TypeScript adds typed syntax on top of JavaScript, generic ESLint cannot parse it without this stack; typescript-eslint fills that gap and extends lint coverage for TypeScript-specific issues.
Key features
- TypeScript parser for ESLint
- Parser services for other tools
- Large standard rule catalog
- Type-aware lint rules
- Project Service configuration aid
- Documentation and playground
- Works with Prettier workflows
- Monorepo of coordinated packages
Use cases
- Linting TypeScript applications
- Type-based bug detection in CI
- Consistent TS style enforcement
- Prettier plus ESLint integration
- Shared rules across JS and TS