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
no-top-level-await
Please describe what the rule should do:
Disallows Top-level await added in ES2022.
await
https://github.com/tc39/proposal-top-level-await
Provide 2-3 code examples that this rule will warn about:
const strings = await import(`/i18n/${navigator.language}`); const connection = await dbConnector(); let jQuery; try { jQuery = await import('https://cdn-a.com/jQuery'); } catch { jQuery = await import('https://cdn-b.com/jQuery'); }
The text was updated successfully, but these errors were encountered:
es/no-top-level-await
Successfully merging a pull request may close this issue.
Please describe what the rule should do:
Disallows Top-level
await
added in ES2022.https://github.com/tc39/proposal-top-level-await
Provide 2-3 code examples that this rule will warn about:
The text was updated successfully, but these errors were encountered: