eslint
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and avoiding bugs.
typescript-eslint
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
Why does this project exist
typescript-eslint rules
recommended configurations
recommended-requiring-type-checking.ts