-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (32 loc) · 1.27 KB
/
Copy pathtsconfig.json
File metadata and controls
32 lines (32 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
{
"$schema": "https://json.schemastore.org/tsconfig",
// These options are a copy of @docusaurus/tsconfig (3.10.2) with `baseUrl`
// dropped. We cannot `extend` that package under TypeScript 7: it sets
// `baseUrl`, which TS 7 removed, and an inherited option cannot be unset.
// Re-sync this block when upgrading Docusaurus, until upstream drops it.
//
// `paths` does the job `baseUrl` used to do here — declared in this file, a
// `paths` entry resolves relative to this file's directory, so `@site/*`
// still points at the project root.
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"jsx": "preserve",
"target": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "bundler",
"module": "esnext",
"noEmit": true,
// TypeScript 7 turns `strict` on by default. @docusaurus/tsconfig never
// set it, so leaving it on would newly fail 18 checks in code that has
// never been type-checked (nothing runs `tsc` here — Docusaurus builds
// through Babel, which strips types without checking them). Pinned to
// `false` so the 7.x upgrade is behaviour-neutral; turning it on is a
// separate piece of work.
"strict": false,
"paths": {
"@site/*": ["./*"]
},
"skipLibCheck": true
}
}