-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
38 lines (37 loc) · 1.54 KB
/
tsconfig.json
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
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"esModuleInterop": true, // Changed to true for better compatibility with CommonJS modules
"allowSyntheticDefaultImports": true,
"allowJs": false,
"strict": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": false, // Ensures TypeScript does not emit compiled files (Vite handles this)
"jsx": "react-jsx",
"skipLibCheck": true,
"customConditions": ["source"],
"paths": {
"@/*": ["./src/*"]
},
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// "allowImportingTsExtensions": true,
"baseUrl": "./", // Ensures relative paths are resolved from the root of the project
"declaration": true, // Enables type declarations for libraries or components
"declarationDir": "./dist/types", // Outputs declaration files to `dist/types`
"outDir": "./dist", // Specifies the output directory (if noEmit is turned off for debugging)
"rootDir": "./src", // Keeps TypeScript aware of the source directory
"allowImportingTsExtensions": false, // Ensures extension-less imports
"moduleDetection": "force", // Forces module mode, avoids pitfalls
"composite": true // Enables project references (useful for large projects)
},
// "files": ["src"], // Entry point of the application
"include": ["src"],
"exclude": ["node_modules", "dist"] // Exclude `dist` folder to prevent reprocessing
}