From ab950742f4e7847a33ce60c5cd55ae9108a04474 Mon Sep 17 00:00:00 2001 From: theurgi <58859663+theurgi@users.noreply.github.com> Date: Tue, 28 Feb 2023 17:45:13 -0500 Subject: [PATCH] feat(astro): add typescript import resolver See "Using eslint with typescript - Unable to resolve path to module" https://stackoverflow.com/questions/55198502/using-eslint-with-typescript-unable-to-resolve-path-to-module --- src/rules/astro.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rules/astro.ts b/src/rules/astro.ts index 1ab5aa8..d0123c8 100644 --- a/src/rules/astro.ts +++ b/src/rules/astro.ts @@ -20,6 +20,12 @@ export = defineConfig( parser: '@typescript-eslint/parser', extraFileExtensions: ['.astro'], }, + + settings: { + 'import/resolver': { + typescript: {}, + }, + }, }, ], }