We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your Environment
Describe the bug
Top level await is considered a syntax error.
To Reproduce
await Promise.resolve(); console.log("hello");
Expected behavior
There should be no syntax error.
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
[error] index.mjs: SyntaxError: 'await' is only allowed within async functions. (1:0) [error] 1 | await Promise.resolve(); [error] 2 | console.log("hello"); [error] 3 |
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered:
This issue is preventing us from adopting the tool
Sorry, something went wrong.
This is caused by the locked babel parser version #141 #147
No branches or pull requests
Your Environment
Describe the bug
Top level await is considered a syntax error.
To Reproduce
Expected behavior
There should be no syntax error.
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: