Skip to content

Upgrading @typescript-eslint/parser 5 to 6

Breaking5.62.0 → 6.21.0Platform2Deprecated1New67Changed14Fixed96Other42

BreakingUpgrade verdict

2 platform requirement changes.

  • Allow writing to deprecated node properties.
  • Drop support for node v14 and test against node v20.
  • The code-formatting lint rules are now marked deprecated and should be replaced with a dedicated formatter.
3 items need code or config changes

Node.js requirement changed in 6.0.0-alpha.144: ^12.22.0 || ^14.17.0 || >=16.0.0 → ^16.0.0 || >=18.0.0.

Adds @typescript-eslint/visitor-keys 6.21.0.

Installs 36 packages in all (was 34).

Platform2
Allow writing to deprecated node properties.
Drop support for node v14 and test against node v20.
Deprecated1
Deprecates the formatting rules in eslint-plugin.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: const meta: { name: string; version: string }
  • removed: const version: string
  • removed: export { ParserOptions } from './parser'
  • removed: export { ParserServices } from '@typescript-eslint/typescript-estree'
  • removed: export { clearCaches } from '@typescript-eslint/typescript-estree'
  • removed: export { createProgram } from '@typescript-eslint/typescript-estree'
  • removed: export { parse } from './parser'
  • removed: export { parseForESLint } from './parser'
  • removed: export { ParserOptions }
  • removed: function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast']
  • removed: function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult
  • added: export { ParserServicesWithTypeInformation } from '@typescript-eslint/typescript-estree'
  • added: export { ParserServicesWithoutTypeInformation } from '@typescript-eslint/typescript-estree'
  • changed: function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast'] → function parse(code: ts.SourceFile | string, options?: ParserOptions): ParseForESLintResult['ast']
  • changed: function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult → function parseForESLint(code: ts.SourceFile | string, options?: ParserOptions | null): ParseForESLintResult