-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
52 lines (52 loc) · 1.74 KB
/
tsconfig.json
File metadata and controls
52 lines (52 loc) · 1.74 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
41
42
43
44
45
46
47
48
49
50
51
52
{
"compilerOptions": {
// Specify ECMAScript target version
"target": "ESNext",
// List of library files to be included in the compilation
"lib": ["dom", "dom.iterable", "esnext"],
// Allow JavaScript files to be compiled
"allowJs": true,
// Skip type checking of declaration files
"skipLibCheck": true,
// Enable all strict type-checking options
"strict": true,
// Ensure consistent casing in file names
"forceConsistentCasingInFileNames": true,
// Do not emit outputs (Vite handles emission)
"noEmit": true,
// Don't generate declaration files
"declaration": false,
// Enable interoperability between CommonJS and ES Modules
"esModuleInterop": true,
// Specify module code generation
"module": "ESNext",
// Specify module resolution strategy (recommended for bundlers like Vite)
"moduleResolution": "Bundler",
// Enable importing .json files
"resolveJsonModule": true,
// Ensure each file can be safely transpiled without relying on other imports
"isolatedModules": true,
// Support JSX in .tsx files
"jsx": "react-jsx",
// Enable incremental compilation
"incremental": true,
// Base directory to resolve non-relative module names
"baseUrl": ".",
// Map paths for module names
"paths": {
"@/*": ["src/*"]
},
// outDir is not used when noEmit is true
// "outDir": "./dist",
// rootDir removed to avoid potential conflicts
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"typeRoots": ["./node_modules/@types", "./src/types"]
},
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node"
},
"include": ["src/**/*", "vite.config.*.ts", "server.ts"],
"exclude": ["node_modules"]
}