We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
antfu/no-top-level-await
1 parent 3f32478 commit 40ee74aCopy full SHA for 40ee74a
src/configs/astro.ts
@@ -43,6 +43,10 @@ export async function astro(
43
name: 'antfu/astro/rules',
44
processor: 'astro/client-side-ts',
45
rules: {
46
+ // Astro uses top level await for e.g. data fetching
47
+ // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro
48
+ 'antfu/no-top-level-await': 'off',
49
+
50
// use recommended rules
51
'astro/missing-client-only-directive-value': 'error',
52
'astro/no-conflict-set-directives': 'error',
0 commit comments