It seems that @typescript-eslint/parser and @typescript-eslint/eslint-plugin are required to get ESLint properly working in TypeScript codebases.
How are they different? Why are they shipped separately if they are both required?
It seems that @typescript-eslint/parser and @typescript-eslint/eslint-plugin are required to get ESLint properly working in TypeScript codebases.
How are they different? Why are they shipped separately if they are both required?
As explained in the Getting Started guide:
In short: the
eslint-pluginpackage contains the actual lint rules, and theparserplugin adds support for parsing TypeScript files (ESLint on its own does not support TypeScript — it used to, but that project evolved into typescript-eslint).