-
-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (40 loc) · 1.14 KB
/
Copy pathtsconfig.json
File metadata and controls
44 lines (40 loc) · 1.14 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
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"types": ["bun"],
"outDir": "dist",
"rootDir": ".",
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Path aliases
"paths": {
"@/*": ["./src/*"]
},
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Stricter flags
"noUnusedLocals": true,
"noUnusedParameters": true,
"noPropertyAccessFromIndexSignature": false,
"exactOptionalPropertyTypes": false,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true
},
"include": ["src/**/*", "tests/**/*", "scripts/**/*"],
// The frontend is browser code with its own lib and globals; tsconfig.gui.json covers it.
"exclude": ["node_modules", "dist", "src/gui/frontend"]
}