From fc2d956349e128a7f48aa58fc653fe62b4b76197 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 4 Oct 2022 14:42:12 +0300 Subject: [PATCH] tsconfig-noastro --- tsconfig.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 } }