-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
37 lines (36 loc) · 1.45 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
{
// Note: No change needed if you use "astro/tsconfigs/strict" or "astro/tsconfigs/strictest"
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": "src", // base path for imports
"strictNullChecks": true, // enable strict null checks
"allowJs": true, // allow JS files to be imported
"target": "ESNext",
"strict": true, // enable all strict type-checking options
"forceConsistentCasingInFileNames": true, // enforce consistent casing in file names
"incremental": true, // enable incremental compilation
"noEmit": true,
"jsx": "react",
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"module": "esnext", // Use ESNext module code generation
"lib": ["dom", "es6"], // Include DOM and ES6 library files
"sourceMap": true, // Generate source maps for debugging
"outDir": "./dist", // Redirect output to the 'dist' directory
"rootDir": "./src", // Specify the root directory of input files
"skipLibCheck": true, // Skip type checking of declaration files
"resolveJsonModule": true, // Allow importing JSON modules
"paths": {
"@consts": ["consts.ts"],
"@assets/*": ["assets/*"],
"@images/*": ["assets/images/*"],
"@svgs/*": ["icons/*"],
"@components/*": ["components/*"],
"@content/*": ["content/*"],
"@layouts/*": ["layouts/*"],
"@pages/*": ["pages/*"],
"@styles/*": ["styles/*"],
"@utils/*": ["utils/*"]
}
}
}