Skip to content

Upgrading @typescript-eslint/parser 6 to 7

Breaking6.21.0 → 7.18.0Platform2Deprecated4New31Changed16Fixed98Other1

BreakingUpgrade verdict

2 platform requirement changes.

  • The parser now works with the newest TypeScript version, 5.4.
  • You must upgrade ESLint, Node.js, and TypeScript to newer minimum versions to use this release.
  • The return-await rule gains a new setting and the old "never" setting is now deprecated.
  • A lint rule gets a clearer name; the old name still works but is deprecated.
Top 5 of 6 that need code or config changes

Node.js requirement changed in 7.2.1-alpha.2: ^16.0.0 || >=18.0.0 → ^18.18.0 || >=20.0.0.

Platform2
Adds support for TypeScript 5.4.
Bumps the minimum required versions of ESLint, Node.js, and TypeScript.
Deprecated4
Adds a return-await option to report only in error-handling scenarios and deprecates the "never" option.
return-await
Renames the no-useless-template-literals rule to no-unnecessary-template-expression and deprecates the old name.
no-useless-template-literalsno-unnecessary-template-expression
Deprecates the prefer-ts-expect-error rule in favor of ban-ts-comment.
prefer-ts-expect-errorban-ts-comment
Deprecates no-throw-literal and adds a renamed only-throw-error rule.
no-throw-literalonly-throw-error

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

  • added: export { withoutProjectParserOptions } from '@typescript-eslint/typescript-estree'