-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtsconfig.app.json
More file actions
38 lines (38 loc) · 1.17 KB
/
Copy pathtsconfig.app.json
File metadata and controls
38 lines (38 loc) · 1.17 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
{
"include": ["src", "src/auto-imports.d.ts"],
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"paths": {
"$*": ["./src/*"]
},
"target": "es2024",
"lib": [
"DOM",
"ES2024",
"ES2024.Promise", // Promise.withResolvers; Baseline 2024
"ESNext.Disposable", // DisposableStack; Stage 3; need polyfill
"ESNext.Collection" // Set.prototype.difference
],
"module": "preserve",
"moduleDetection": "force",
"isolatedModules": true,
"strict": true,
"noImplicitOverride": true,
"skipLibCheck": true,
"types": [
"@total-typescript/ts-reset",
"vite/client",
"unplugin-icons/types/react",
"typed-query-selector",
"@violentmonkey/types" // "vite-plugin-monkey/global", has issue with GM.setClipboard API
],
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"useDefineForClassFields": true,
"allowImportingTsExtensions": true,
"exactOptionalPropertyTypes": false, // 库(如 antd) 不支持
"noFallthroughCasesInSwitch": true,
"noEmit": true,
"plugins": [{ "name": "@styled/typescript-styled-plugin" }]
}
}