Skip to content

Commit

Permalink
feat(astro): ignore unresolved astro: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
theurgi committed Apr 16, 2023
1 parent 9d1aa5f commit f9e203a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rules/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ export = defineConfig(
files: ['**/*.astro/*.js', '*.astro/*.js'],
parser: '@typescript-eslint/parser',
},
{
files: ['*.js', '*.jsx', '*.ts', '*.tsx', '*.astro'],
rules: {
'import/no-unresolved': [
'error',
{
ignore: ['astro:'],
},
],
},
},
],
}
: {}
Expand Down

0 comments on commit f9e203a

Please sign in to comment.