Skip to content

[Bug]: @babel/eslint-parser/experimental-worker hang when .babelrc located in directory #16163

@coderaiser

Description

@coderaiser

💻

  • Would you like to work on a fix?

How are you using Babel?

@babel/eslint-parser

Input code

Just trapped on interesting behavior, while linting markdown file with 🐊Putout one of my old repositories coderaiser/itchy, everything is hang, and the reason is ESLint with @babel/eslint-parser-experimental-worker and .babelrc.

Here is used config:
https://github.com/coderaiser/putout/blob/v33.13.4/packages/eslint-plugin-putout/lib/markdown.js#L43-L46

To reproduce clone repository at the commit hash and run node_modules/.bin/putout README.md, at debugger you can find that ESLint running with provided config.

When I remove .babelrc (or disable experimental worker) the hang was fixed. Looks like some kind of conflict between babel configs 🤷‍♂️. It took some time to understand the reason of a process hang, so I share it, maybe it helps to fix it.

Configuration file name

No response

Configuration

No response

Current and expected behavior

Expected not to hang

Environment

Latest Babel

Possible solution

No response

Additional context

No response

Metadata

Metadata

Labels

outdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: core

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions