forked from alchemy-run/alchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
61 lines (61 loc) · 2.18 KB
/
Copy pathtsconfig.base.json
File metadata and controls
61 lines (61 loc) · 2.18 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
58
59
60
61
{
"exclude": ["node_modules", "dist", "vendor"],
// For `tsc -b -w` / classic-tsserver editors (the Cursor/tsgo LSP watches via
// the client, gated by .vscode/settings.json `files.watcherExclude`).
"watchOptions": {
"watchFile": "useFsEvents",
"watchDirectory": "useFsEvents",
"excludeDirectories": [
"**/node_modules",
"**/.git",
"**/.claude",
"**/.vendor",
"**/.alchemy",
"**/dist"
]
},
"compilerOptions": {
"types": ["bun"],
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"noEmit": true,
// Bundler mode
"module": "Preserve",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"rewriteRelativeImportExtensions": true,
"verbatimModuleSyntax": true,
// Best practices
"strict": true,
"skipLibCheck": true,
// Resolve project references (notably every `distilled/packages/*`)
// through their emitted `lib/*.d.ts` instead of redirecting to their
// sources. Without this, editors and `tsc` pull distilled's generated
// SDK sources — hundreds of thousands of lines across 20 packages —
// into the program, which is what makes intellisense crawl. distilled
// builds with `noCheck: true` and gates its own typechecking in its
// own CI, so re-checking its sources from here buys nothing.
"disableSourceOfProjectReferenceRedirect": true,
// Don't eagerly load every referenced composite project into the language
// server on find-all-references/rename — with 6 distilled projects and ~36
// examples in the solution, eager loading is a multi-GB memory spike.
// Editor-only; no effect on `tsc -b`.
"disableReferencedProjectLoad": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
"noImplicitThis": true,
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"noErrorTruncation": true
}
}