-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
34 lines (31 loc) · 1.27 KB
/
tsconfig.json
File metadata and controls
34 lines (31 loc) · 1.27 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
{
"compilerOptions": {
"target": "ES2020", // Vite build target
"useDefineForClassFields": true, // https://vitejs.dev/guide/features.html#usedefineforclassfields
"module": "ESNext", // Needed for import.meta.url support
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true, // Skip typechecking library files
/* Bundler mode */
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true, // Because esbuild only performs transpilation without type information
"moduleDetection": "force",
"noEmit": true, // Because we're using Vite for building
/* Linting */
"strict": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedSideEffectImports": true,
"paths": {
// Path mapping for resolving library classes from sketches scripts
// Cannot specify baseUrl explicitly because of https://github.com/qmhc/vite-plugin-dts#internal-error-occurs-when-using-rolluptypes-true
"library/*": ["./library/*"],
"sketches/*": ["./sketches/*"],
"/assets/*": ["./assets/*"]
},
"types": ["vite/client", "vite-plugin-glsl/ext"]
},
"exclude": ["dist"]
}