Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Nov 27, 2024
1 parent 06fb546 commit ffe428d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 All @@ -55,10 +59,6 @@ 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',

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

0 comments on commit ffe428d

Please sign in to comment.