Upgrading @typescript-eslint/eslint-plugin 6 to 7
Breaking6.21.0 → 7.18.0Platform4Deprecated4New30Changed15Fixed96Other3
BreakingUpgrade verdict
4 platform requirement changes.
In plain terms
- The tooling now works with the newest TypeScript version, 5.5.
- The package now works with the newest TypeScript version, 5.4.
- This release adjusts which version of the companion parser package this plugin expects you to install alongside it.
- This version requires newer versions of ESLint, Node.js, and TypeScript, so older setups must upgrade.
Must act Top 5 of 8 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.
Drops debug, semver.
Installs 42 packages in all (was 44).
What you must change
Platform4
Adds support for TypeScript 5.5.
Adds support for TypeScript 5.4.
Updates the peer dependency range for the parser package.
Bumps minimum required ESLint, Node.js, and TypeScript versions.
Deprecations to plan for
Deprecated4
Adds a return-await option to report only in error-handling scenarios and deprecates the "never" option.
return-awaitRenames no-useless-template-literals to no-unnecessary-template-expression and deprecates the old rule name.
no-useless-template-literalsno-unnecessary-template-expressionDeprecates the prefer-ts-expect-error rule in favor of ban-ts-comment.
prefer-ts-expect-errorban-ts-commentDeprecates no-throw-literal and adds a renamed only-throw-error rule.
no-throw-literalonly-throw-errorAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
const cjsExport: { configs: Record<string, ClassicConfig.Config>; rules: typeof rules } → const cjsExport: { configs: Record<string, ClassicConfig.Config>; meta: FlatConfig.PluginMeta; rules: typeof rules }