Web

eslint, typescript-eslint, angular-eslint

Posted by Kerwen Blog on March 28, 2023

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.

eslint rules

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.ts

recommended-requiring-type-checking.ts

strict.ts

angular-eslint

Reference