-
Notifications
You must be signed in to change notification settings - Fork 485
Expand file tree
/
Copy pathtsconfig.json
More file actions
42 lines (39 loc) · 1.33 KB
/
Copy pathtsconfig.json
File metadata and controls
42 lines (39 loc) · 1.33 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
{
"include": [
"**/*.ts",
"**/*.tsx",
"eslint.config.js",
"prettier.config.js",
"vite.config.js"
],
// wrangler's generated types pull in workerd runtime globals that shadow the DOM lib and break
// browser-side type inference (e.g. Response.json()). The two server files that need R2 types use
// a minimal local interface instead. Regenerate with `pnpm cf-typegen` if you want full binding types.
// `commercial/` is the private commercial overlay — a separate build unit (its own tsconfig/checks),
// merged in only at build time via the #commercial seam. Keep it out of the open-source type-check.
"exclude": ["worker-configuration.d.ts", "commercial"],
"compilerOptions": {
"target": "ES2022",
"jsx": "react-jsx",
"module": "ESNext",
"paths": {
"#/*": ["./src/*"],
"@/*": ["./src/*"],
"#commercial": ["./src/commercial/stub.ts"]
},
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": ["vite/client", "node"],
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
/* Linting */
"skipLibCheck": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
}
}