Throw better error message when await
is not used in async functions in errorRecovery mode
#12436
Labels
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
Bug Report
Current behavior
Should throw an error with better message.
Input Code
Expected behavior
Mabe like this, when
errorRecovery: false
The error message is much better.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
Through API, without config
Environment
Possible Solution
I have no idea
Additional context
Issue on Prettier prettier/prettier#9799 and prettier/prettier#9084
The text was updated successfully, but these errors were encountered: