-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
35 lines (35 loc) · 1.05 KB
/
Copy pathtsconfig.json
File metadata and controls
35 lines (35 loc) · 1.05 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
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"compilerOptions": {
// Basic
"allowJs": true,
// Building for a library
"declaration": true,
// Code runs in the DOM
"lib": ["es2022", "dom", "dom.iterable"],
// Others
"baseUrl": ".",
"strictNullChecks": true,
"jsx": "react-jsx",
"jsxImportSource": "react",
// Paths
"paths": {
"@/assets/*": ["src/assets/*"],
"@/components/*": ["src/components/*"],
"@/layouts/*": ["src/layouts/*"],
"@/utils": ["src/utils/index.ts"],
"@/utils/*": ["src/utils/*"],
"@/plugins/*": ["src/plugins/*"],
"@/pages/*": ["src/pages/*"],
"@/types": ["src/types/index.ts"],
"@/types/*": ["src/types/*"],
"@/site-config": ["src/site.config.ts"],
"@/libs/*": ["src/libs/*"],
"@/schemas/*": ["src/schemas/*"],
"@/server": ["src/server.ts"],
"@/public/*": ["public/*"]
}
},
"exclude": ["node_modules", "**/node_modules/*", ".vscode", "dist", "public/scripts/*", "test/*"]
}