diff --git a/src/configs/astro.ts b/src/configs/astro.ts index 6a0abab290..206795c863 100644 --- a/src/configs/astro.ts +++ b/src/configs/astro.ts @@ -43,6 +43,10 @@ export async function astro( name: 'antfu/astro/rules', processor: 'astro/client-side-ts', rules: { + // Astro uses top level await for e.g. data fetching + // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro + 'antfu/no-top-level-await': 'off', + // use recommended rules 'astro/missing-client-only-directive-value': 'error', 'astro/no-conflict-set-directives': 'error',