-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
39 lines (39 loc) · 1.3 KB
/
Copy pathtsconfig.base.json
File metadata and controls
39 lines (39 loc) · 1.3 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
{
"compilerOptions": {
"rootDir": "src",
"target": "ES2020",
"lib": ["ES2020"],
"composite": true,
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"jsx": "react",
// TypeScript 7 removed "node"/"node10"; "bundler" is its closest analogue
// (extensionless relative imports, plus package.json "exports" support).
// Every consumer of these packages is a bundler or CJS Node, both of which
// resolve the same way. Pairing it with "module": "commonjs" only became
// legal in TypeScript 6.
"moduleResolution": "bundler",
"declaration": true,
"declarationMap": true,
"removeComments": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
// "baseUrl" was removed in TypeScript 7. Without it, "paths" targets resolve
// relative to the config file that declares them -- this one, at the repo
// root -- so "./src/*" reproduces the old baseUrl:"." + "src/*" mapping.
// These must stay relative: TS7 rejects bare non-relative targets (TS5090).
"paths": {
"@simlin/*": [
"./src/*"
]
}
}
}