Skip to content

Commit

Permalink
fix(eslint-config): astro import resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
theurgi committed Oct 31, 2023
1 parent 5f745b7 commit 9b8ada9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-zebras-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@phi.school/eslint-config': minor
---

Fix import resolver for astro/typescript files.
6 changes: 6 additions & 0 deletions packages/eslint-config/src/rules/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export default defineConfig(
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},

settings: {
'import/resolver': {
typescript: {},
},
},
},
{
// enable ts for client-side script tags
Expand Down

0 comments on commit 9b8ada9

Please sign in to comment.