diff --git a/tsconfig.json b/tsconfig.json index a6e06339..93a2d232 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,21 @@ { - "extends": "astro/tsconfigs/base", "compilerOptions": { + "allowSyntheticDefaultImports": true, + "importsNotUsedAsValues": "error", + // Solid specific settings "jsx": "preserve", - "jsxImportSource": "solid-js" + "jsxImportSource": "solid-js", + // Enable top-level await and other modern ESM features. + "target": "ESNext", + "module": "ESNext", + // Enable node-style module resolution, for things like npm package imports. + "moduleResolution": "node", + // Enable JSON imports. + "resolveJsonModule": true, + // Enable stricter transpilation for better output. + "isolatedModules": true, + // Astro will directly run your TypeScript code, no transpilation needed. + "noEmit": true, + "skipLibCheck": true } }