-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
💻
- 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