Skip to content

Bug: Type '17' is not assignable to type 'EcmaVersion' #11305

Closed
@Livan-pro

Description

@Livan-pro

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

The latest typescript-eslint's config types are incompatible with the latest ESLint. It causes many third-party ESLint configs to not be usable in the tseslint.config. The issue seems to be caused by this PR: eslint/eslint#19832, and released in the ESLint version 9.29.0. The issue is introduced by ESLint, but I think it should be fixed in the typescript-eslint.

Reproduction Repository Link

https://github.com/Livan-pro/typescript-eslint-ecmascript17-bug

Repro Steps

  1. clone the repo
  2. yarn install
  3. yarn typecheck

Versions

package version
typescript-eslint 8.34.0
TypeScript 5.8.3
ESLint 9.29.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions