diff --git a/.eslintignore b/.eslintignore index ad144c20e..a74612486 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,3 @@ /.svelte-kit /build /node_modules -/scripts -svelte.config.js -vite.config.js diff --git a/svelte.config.js b/svelte.config.js index e248ba60c..8e9d2f10b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -38,6 +38,17 @@ const config = { $utils: path.resolve('./src/lib/utils'), $styles: path.resolve('./src/lib/styles'), $stores: path.resolve('./src/lib/stores') + }, + typescript: { + config: (config) => { + config.include = [ + ...config.include, + '../scripts/**/*.js', + '../svelte.config.js', + '../vite.config.js' + ]; + return config; + } } } };