ESLint plugin that wraps TypeScript compiler checks as an ESLint rule. Version 2.0.0 (September 2020) requires TypeScript 4+. It provides a single rule `tsc/config` that runs the TypeScript compiler on files linted by ESLint, reporting type errors and diagnostics. Unlike @typescript-eslint, which implements type-aware lint rules individually, this plugin directly invokes the full compiler, catching all type errors and compiler options like noUnusedLocals. Suitable for projects wanting to enforce compiler checks within ESLint without duplicating compiler options. Release cadence: infrequent, last release 2020.
npm install eslint-plugin-tscNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures eslint-plugin-tsc to run TypeScript compiler checks via the tsc/config rule, overriding compiler options.
Use eslint-plugin-tsc@1.2.0 if using TypeScript <4.
Specify an absolute path for configFile, e.g., path.resolve(__dirname, 'tsconfig.json').
Use alongside @typescript-eslint for fine-grained lint rules if needed.
Migrate to @typescript-eslint/parser and @typescript-eslint/eslint-plugin.
Add configFile to rule options with correct path, e.g., "configFile": "path/to/tsconfig.json".
Add @typescript-eslint/parser to your ESLint config: 'parser': '@typescript-eslint/parser'.
Run npm install eslint-plugin-tsc --save-dev and add 'tsc' to plugins array.