Fix: TypeScript config for IDE compatibility

This commit is contained in:
cawcenter
2025-12-12 00:41:59 -05:00
parent ea06283e4c
commit 2737efa413
2 changed files with 30 additions and 14 deletions

View File

@@ -4,6 +4,9 @@ interface ImportMetaEnv {
readonly PUBLIC_DIRECTUS_URL: string; readonly PUBLIC_DIRECTUS_URL: string;
readonly DIRECTUS_ADMIN_TOKEN: string; readonly DIRECTUS_ADMIN_TOKEN: string;
readonly PUBLIC_PLATFORM_DOMAIN: string; readonly PUBLIC_PLATFORM_DOMAIN: string;
readonly DEV: boolean;
readonly PROD: boolean;
readonly MODE: string;
} }
interface ImportMeta { interface ImportMeta {

View File

@@ -1,22 +1,35 @@
{ {
"extends": "astro/tsconfigs/strict",
"compilerOptions": { "compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"jsx": "react-jsx",
"jsxImportSource": "react",
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"isolatedModules": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": [ "@/*": [
"src/*" "src/*"
],
"@/components/*": [
"src/components/*"
],
"@/lib/*": [
"src/lib/*"
],
"@/types/*": [
"src/types/*"
] ]
}
}, },
"jsx": "react-jsx", "include": [
"jsxImportSource": "react" "src/**/*",
} "src/env.d.ts"
],
"exclude": [
"node_modules",
"dist"
]
} }