-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
40 lines (39 loc) · 1.26 KB
/
tsconfig.json
File metadata and controls
40 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"compilerOptions": {
// --- Base URL and Path Alias ---
// Defines the root for aliases and maps @/* to ./src/*
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
// --- End Alias Config ---
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"ignoreDeprecations": "6.0",
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Bundler", // Recommended for Vite
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true, // Correct for Vite projects
"jsx": "react-jsx"
// "noUncheckedSideEffectImports": true, // Keep if no issues, remove if CSS imports cause problems
},
// Include all source code for type checking context, specific includes are in referenced configs
"include": ["src", "vite.config.ts"],
// Exclude build outputs, node_modules etc.
"exclude": [
"node_modules",
"dist-*", // Excludes dist-react, dist-electron
"release",
"build",
".tmp" // Exclude build info directory
]
// --- REMOVED references array to avoid conflict with noEmit ---
}