-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
23 lines (23 loc) · 943 Bytes
/
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
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"jsx": "react-jsx", // Enable JSX support for React
"jsxImportSource": "react", // Specify React as the JSX import source
"paths": {
"@/*": ["src/*"] // Alias configuration
},
"baseUrl": ".", // Set base URL for module resolution
"plugins": [
{
"name": "@astrojs/ts-plugin" // Corrected plugin name
}
],
"moduleResolution": "node", // Ensure Node module resolution
"strict": true, // Enforce strict type checking
"esModuleInterop": true, // Enable ES module interoperability
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"skipLibCheck": true // Skip type checking of declaration files for faster builds
},
"include": ["src/**/*"], // Include all files in the src directory
"exclude": ["node_modules"] // Exclude node_modules from type checking
}