Skip to content

Commit

Permalink
fix: disable antfu/no-top-level-await for Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Nov 27, 2024
1 parent be26a54 commit 06fb546
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 @@ -55,6 +55,10 @@ export async function astro(
'astro/semi': 'off',
'astro/valid-compile': 'error',

// 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',

Check failure on line 60 in src/configs/astro.ts

View workflow job for this annotation

GitHub Actions / lint

Expected "antfu/no-top-level-await" to come before "astro/valid-compile"

...stylistic
? {
'style/indent': 'off',
Expand Down

0 comments on commit 06fb546

Please sign in to comment.