Skip to main content

TypeScript ESLint

Tooling which enables ESLint to support TypeScript

What are ESLint and TypeScript, and how do they compare?

eslint

ESLint is an awesome linter for JavaScript code.

ESLint statically analyzes your code to quickly find problems. It allows creating a series of assertions called lint rules around what your code should look or behave like, as well as auto-fixer suggestions to improve your code for you, and loading in lint rules from shared plugins.

TypeScript

TypeScript is a strongly typed programming language that builds on JavaScript.

TypeScript adds additional syntax to JavaScript that allows you to declare the shapes of objects and functions in code. It provides a set of language services that allow for running powerful inferences and automations with that type information.

Why does this project exist?

typescript-eslint enables ESLint to run on TypeScript code. It brings in the best of both tools to help you write the best JavaScript or TypeScript code you possibly can.

ESLint and TypeScript represent code differently internally. ESLint's default JavaScript parser cannot natively read in TypeScript-specific syntax and its rules don't natively have access to TypeScript's type information.

typescript-eslint:
  • allows ESLint to parse TypeScript syntax
  • creates a set of tools for ESLint rules to be able to use TypeScript's type information
  • provides a large list of lint rules that are specific to TypeScript and/or use that type information

Financial Contributors

The TypeScript ESLint project would not be possible without the generous support of our financial contributors.

Sponsors

Donors of $750 and/or a monthly amount of $100 or more.

Gold Supporters

Donors of $150 and/or a monthly amount of $10 or more.

  • Future Processing logo
  • Sentry logo
  • Whitebox logo
  • Monito logo
  • revo.js logo
  • Ian MacLeod logo
  • STORIS logo
  • Michael Ranciglio logo
  • David Johnston logo
  • Tripwire, Inc. logo
  • Evil Martians logo
  • Balsa logo
  • Jeffrey Rennie logo
  • Corellium logo
  • MySportsInjury logo

Supporters

Donors of $50 and/or a monthly amount of $3 or more.

  • Joe Alden logo
  • Gianfranco Palumbo logo
  • The Guardian logo
  • Pete Gonzalez logo
  • Niklas Fiekas logo
  • Indeed logo
  • Andrey Sitnik logo
  • Kamino Ryo logo
  • Kevin Smith logo
  • Dani Gellis logo
  • 38elements logo
  • Gaëtan Bloch logo
  • Softwear, BV logo
  • Sean Lindsay logo
  • Jane Doe logo
  • Philip Keiter logo
  • Toru Shimogaisho logo
  • Kazuhiro Kobayashi logo
  • Masafumi Koba logo
Become a financial contributor