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?
Copyright © 2021 Jogjafile Inc.
As explained in the Getting Started guide:
In short: the
eslint-plugin
package contains the actual lint rules, and theparser
plugin adds support for parsing TypeScript files (ESLint on its own does not support TypeScript — it used to, but that project evolved into typescript-eslint).