-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtsconfig.json
74 lines (74 loc) · 1.43 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"compilerOptions": {
// Enable top-level await and other modern ESM features.
"target": "ESNext",
"module": "ESNext",
// Enable node-style module resolution, for things like npm package imports.
"moduleResolution": "node",
// Enable JSON imports.
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Vite runtime.
"types": [
"vite/client",
"node",
"react",
],
"jsx": "react",
"allowUnreachableCode": false,
"alwaysStrict": true,
"allowUnusedLabels": false,
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"baseUrl": ".",
"plugins": [
{
"name": "typescript-plugin-css-modules",
"options": {
"postCssOptions": {
"useConfig": true
},
"customMatcher": "\\.scss$",
"rendererOptions": {
"sass": {
"includePaths": [
"./src/styles"
]
}
}
}
}
],
"paths": {
"@pages/*": [
"site/src/pages/*"
],
"@partials/*": [
"site/src/components/partials/*"
],
"@parts/*": [
"site/src/components/parts/*"
],
"@components/*": [
"site/src/components/*"
],
"@layouts/*": [
"site/src/layouts/*"
],
"@data/*": [
"site/_data/*"
],
"@img/*": [
"site/src/img/*"
],
"@styles/*": [
"site/src/styles/*"
],
"@utils/*": [
"site/src/utils/*"
]
}
}
}