Skip to content

Commit

Permalink
fix(configs/astro): client-side scripts not being able to linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eteplus committed Mar 25, 2024
1 parent 1fa15af commit 01ebda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface AstroBaseRules {
'astro/prefer-class-list-directive': RuleEntry;
'astro/prefer-object-class-list': RuleEntry;
'astro/prefer-split-class-list': RuleEntry;
'astro/missing-client-only-directive-value': RuleEntry;
'astro/semi': RuleEntry;
};

Expand Down Expand Up @@ -143,7 +144,7 @@ export async function astro(
},
sourceType: 'module',
},
processor: AstroPlugin.processors['.astro'],
processor: AstroPlugin.processors['client-side-ts'],
},
{
// Define the configuration for `<script>` tag.
Expand Down Expand Up @@ -172,7 +173,6 @@ export async function astro(
project: null,
},
},
processor: AstroPlugin.processors['client-side-ts'],
},
{
files,
Expand Down

0 comments on commit 01ebda6

Please sign in to comment.