Reports top-level await expressions in files that export values.
✅ This rule is included in the ts logicalStrict presets.
Top-level await (“TLA”) allows using await at the module level.
While convenient for standalone files run like scripts, it can cause issues if those files are imported by other modules:
Modules using top-level await block their dependents until the await resolves
This can cause unexpected delays in application startup
It makes module loading order slower and sometimes less predictable
If you’re intentionally using top-level await for module initialization and understand the implications for module loading, you may disable this rule.
You might consider using Flint disable comments and/or configuration file disables for those specific situations instead of completely disabling this rule.