-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
57 lines (53 loc) · 1.74 KB
/
tsconfig.json
File metadata and controls
57 lines (53 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
53
54
55
56
57
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
// Ensure React DOM JSX types are loaded in editors even if TS server
// doesn't auto-detect dependency types
"types": ["react", "react-dom", "node", "vite/client"],
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
/* Path aliases — keep in sync with vite.config.ts resolve.alias */
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"],
"@config/*": ["src/config/*"],
"@controllers/*": ["src/controllers/*"],
"@core/*": ["src/core/*"],
"@debug/*": ["src/debug/*"],
"@domain/*": ["src/domain/*"],
"@effects/*": ["src/effects/*"],
"@helpers/*": ["src/helpers/*"],
"@hooks/*": ["src/hooks/*"],
"@objects/*": ["src/objects/*"],
"@physics/*": ["src/physics/*"],
"@scenes/*": ["src/scenes/*"],
"@shaders/*": ["src/shaders/*"],
"@state/*": ["src/state/*"],
"@styles/*": ["src/styles/*"],
"@types/*": ["src/types/*"],
"@utils/*": ["src/utils/*"],
"@workers/*": ["src/workers/*"],
"three/examples/jsm/*": ["node_modules/three/examples/jsm/*"]
},
/* Allow JavaScript files */
"allowJs": true
},
"include": ["src"],
"exclude": ["node_modules", "dist", "tools"],
"references": [{ "path": "./tsconfig.node.json" }]
}