Skip to content

Commit

Permalink
fix: disable antfu/no-top-level-await for Astro (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Nov 27, 2024
1 parent 3f32478 commit 40ee74a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/configs/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 40ee74a

Please sign in to comment.