Skip to content

Bug: [no-unsafe-type-assertion]: RangeError: Maximum call stack size exceeded #11824

@hab25

Description

@hab25

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

Oops! Something went wrong! :(

ESLint: 9.39.1

RangeError: Maximum call stack size exceeded
Occurred while linting /home/hab25/my/work/typescript-eslint-issue/index.mts:24
Rule: "@typescript-eslint/no-unsafe-type-assertion"

...

Reproduction Repository Link

https://github.com/hab25/typescript-eslint-issue

Repro Steps

pnpm install && pnpm exec tsc && pnpm exec eslint --fix index.mts --no-cache --color --debug --max-warnings=0 --stats -c eslint.config.mjs

Versions

$ node --version
v22.19.0
$ pnpm --version
10.22.0
$ pnpm list
[...]
devDependencies:
eslint 9.39.1
remeda 2.32.0
type-fest 5.3.0
typescript 5.9.3
typescript-eslint 8.48.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions