Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug: Eslint hangs and gobbles memory with i18next version 22 and typescript-eslint #6538

Closed as not planned
Labels
bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselfpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@raigoinabox

Description

@raigoinabox

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 havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Issue Description

I type in "eslint src" and eslint would hang and start gobbling memory.

After it has taken about 4 gigs of memory, node would throw an out of memory error.

I have made a minimal reproduction example repo in github.

It seems to be a complex bug through the interplay between typescript-eslint and i18next.
I first discovered it by upgrading to i18next version 22. They did a major typescript rewrite
for that version. It can be seen from this repo as well, if i18next is removed, the bug disappears.
These are things I have tried to change, and then notice that the bug goes away:

  • remove i18next.d.ts file (or any code in there)
  • remove i18next package
  • move i18next to the src directory
  • in eslint conf replace "plugin:@typescript-eslint/recommended-requiring-type-checking" with "plugin:@typescript-eslint/recommended"
  • change the content of src/broken.ts in any way.

Reproduction Repository Link

https://github.com/raigoinabox/typescript-eslint-hang-bug

Repro Steps

  1. clone the repo
  2. npm install
  3. npx eslint src

Versions

packageversion
@typescript-eslint/eslint-plugin5.53.0
@typescript-eslint/parser5.53.0
@typescript-eslint/scope-manager5.53.0
@typescript-eslint/typescript-estree5.53.0
@typescript-eslint/type-utils5.53.0
@typescript-eslint/utils5.53.0
TypeScript4.9.5
ESLint8.35.0
node16.19.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselfpackage: 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp