Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Upgrades and deprecations

TSLint Is Deprecated: Getting to ESLint and typescript-eslint Today

In short

TSLint is replaced by ESLint with typescript-eslint. Palantir announced the deprecation in 2019, shipped the last release in July 2020 and archived the repository in March 2021. The standard converter, tslint-to-eslint-config, still writes an .eslintrc file, which ESLint 10 ignores, so plan two conversions: tslint.json to eslintrc JSON, then eslintrc to eslint.config.js.

Why was TSLint deprecated, and when did it stop?

Palantir's GitHub issue #4534, opened on 23 February 2019, is the roadmap from TSLint to ESLint. A June 2019 update set four cut-offs: no new core rules from 1 August 2019, no new features from 1 November 2019, only security fixes from 1 January 2020 (a March 2020 edit added fixes for crashes from breaking TypeScript changes), and no pull requests at all from 1 December 2020.

On npm, 6.1.3 from 31 July 2020 is the final version, and its deprecation message points back to that issue. GitHub shows the repository archived, and so read-only, since 25 March 2021.

typescript-eslint gives duplicated effort as the reason: TSLint could reuse nothing built around ESLint, so editor extensions, auto-fixing and rules were all written twice. The TypeScript team moved its own codebase to typescript-eslint as well.

Checked against: source 1, source 2, source 3, source 4

What replaces TSLint, and which versions fit together now?

ESLint plus the typescript-eslint package, set up in a flat config file. The typescript-eslint quickstart installs eslint, @eslint/js, typescript and typescript-eslint, then writes an eslint.config.mjs wrapped in ESLint's own defineConfig(). The package page marks the older tseslint.config() helper as deprecated in favour of that function.

On ESLint's version-support page, v10 is the current line, first released on 6 February 2026, and v9 reached end of life on 6 August 2026. Its v10 migration guide lists Node.js 20.19+, 22.13+ and 24+ as supported, dropping 21 and 23. typescript-eslint 8.73.0, the latest on npm, accepts ESLint 8.57, 9 or 10 and TypeScript from 4.8.4 up to, not including, 6.1.0.

Checked against: source 5, source 6, source 7, source 8, source 10

Why does a converted config not load on ESLint 10?

tslint-to-eslint-config reads your linter, TypeScript and package files and, by default, writes .eslintrc.js. Rules with an ESLint counterpart are mapped; the rest are wrapped in eslint-plugin-tslint. It needs Node 14 or newer and TSLint 5.18 or newer.

That default format is the catch. The ESLint 10 release post says the eslintrc system was removed completely: .eslintrc.* and .eslintignore files are no longer honoured, ESLINT_USE_FLAT_CONFIG is ignored, and /* eslint-env */ comments are reported as errors. A freshly converted file has no effect until it becomes flat config; this fix page covers that symptom.

ESLint's own converter, @eslint/migrate-config, bridges the two formats. Its guide warns that it handles .eslintrc.js poorly, keeping only the evaluated data and dropping functions or conditionals. Requesting JSON from tslint-to-eslint-config sidesteps that, since its --config flag chooses the output format from the file extension.

Checked against: source 9, source 11, source 12

What are the TSLint to ESLint migration steps, in order?

The converter's FAQ puts a near-identical conversion first and a rule review second. Joined with the ESLint guide, I would plan it like this.

  • Install the packages from the typescript-eslint quickstart, but leave TSLint installed for now: the converter feeds tslint.json through TSLint's --print-config.
  • Run the converter with --config .eslintrc.json for JSON output and --comments, which rewrites // tslint:disable flags as eslint-disable comments. Add --prettier if Prettier will own formatting.
  • List every rule that fell back to the TSLint wrapper, then run @eslint/migrate-config on the JSON file. The ESLint guide calls its result a starting point that may need edits.
  • Move the base to typescript-eslint's recommended presets, then fix or disable what they report. The FAQ suggests granular tickets for re-enabling rules you switch off.
  • Delete tslint.json, TSLint and the wrapper once nothing uses them. The converter's --editor flag rewrites TSLint entries in VS Code settings; if the editor then shows nothing, see this editor page.
npx tslint-to-eslint-config --config .eslintrc.json --comments
npx @eslint/migrate-config .eslintrc.json

Checked against: source 5, source 11, source 12, source 13

Which TSLint rules have no ESLint equivalent?

typescript-eslint keeps a rule-by-rule alternatives list. My own count of its four sections on core TSLint rules gives 161 rules: 18 marked unimplemented and 8 whose ESLint version differs or lacks functionality. The rest point to ESLint, typescript-eslint or another plugin.

Unimplemented ones include strict-type-predicates, no-null-undefined-union, prefer-conditional-expression, static-this and no-tautology-expression. Among the partial matches, ban-types becomes no-restricted-types, which takes exact strings instead of regular expressions, and no-unsafe-any maps to a rule that only checks member expressions.

The fallback is thinner than it sounds. eslint-plugin-tslint runs TSLint inside ESLint through one rule, @typescript-eslint/tslint/config, and its README says --fix does not apply to rules loaded this way. Its latest release, 7.0.2, declares a peer dependency on ESLint ^8.56.0, a line that has been end of life since 5 October 2024. I would treat each wrapped rule as something to replace or drop, not to keep.

Checked against: source 8, source 14, source 15, source 16

What does type-aware linting cost compared with TSLint?

Some TSLint rules, such as no-floating-promises, now live in typescript-eslint rules that need type information. The typed-linting guide turns them on with the TypeChecked presets plus parserOptions.projectService: true, which asks TypeScript's type-checking service about each file.

The price is a TypeScript build before linting: negligible on small projects, longer on large ones, and the performance page expects lint time to track build time. Broad include globs in tsconfig, or none at all, can make TypeScript parse far more files, build output included.

If ESLint then says a file is missing from your TSConfig, see this page.

Checked against: source 14, source 17, source 18

How does an Angular project move off TSLint and Codelyzer?

Angular adds two dates. angular-eslint's now-historical notes say the Angular CLI stopped supporting its TSLint builder for ng lint as of version 13, and that angular-eslint removed its convert-tslint-to-eslint schematic in version 16.

Current angular-eslint requires ESLint 9 or later and supports only flat config. ng add angular-eslint installs it and, in a single-project workspace with no linter yet, wires up the config. Its majors have tracked Angular's since v12, and the README says to pin the major on older workspaces, as in ng add angular-eslint@21; npm lists 18.0.0 as that package's first stable version, so Angular 18 takes @18. The latest releases of majors 18 to 20 declare ESLint 8.57 or 9 as peers; ESLint 10 first appears in 21.3.0. Typed rules stay off by default for speed; --tseslint-preset=strictTypeChecked opts in. Its type-information guide still uses the deprecated tseslint.config(), so I would write defineConfig() instead, checking files in extended configs, which the typescript-eslint package page says the two helpers treat differently.

Going by that, on Angular 18 a leftover tslint.json is not run by the CLI builder, so I would first check package.json and CI for anything still calling TSLint. Older workspaces may use the removed schematic on a pre-16 Angular and angular-eslint, as the notes allow, then climb one Angular major at a time and switch to flat config on the way. In the notes' Codelyzer table, which matches angular-eslint 15, coverage is broad, but no-unused-css has no listed equivalent and four rules are marked as handled by the compiler or a formatter.

If the same workspace still runs its end-to-end suite through Protractor, that tool is past end of life as well; moving Angular e2e tests off Protractor covers what ng e2e sets up in its place.

Checked against: source 6, source 19, source 20, source 21, source 22

What else do people ask?

Can TSLint and ESLint run side by side during the move?

typescript-eslint calls that the ultimate fallback, through eslint-plugin-tslint. With no autofix and a peer range that stops at ESLint 8, it works as a short bridge at most.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. This page joins TSLint, typescript-eslint, ESLint, angular-eslint and npm registry documents fetched on 21 Nov 2026. I did not migrate a project for it. It leaves out Nx workspaces, custom TSLint rules, ESLint plugins beyond typescript-eslint and angular-eslint, or lint speed on a real codebase. Found a mistake? Tell me.

Keep reading

Next step

Have a project in mind?

Tell me about it. A discovery call within 48 hours.