Skip to content

es-x/no-top-level-await

disallow top-level await

This rule reports ES2022 Top-level await as errors.

💡 Examples

⛔ Examples of incorrect code for this rule:

Now loading...

🚀 Version

This rule was introduced in v5.0.0.

📚 References