forked from bangumi/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
36 lines (36 loc) · 1.02 KB
/
tsconfig.json
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
{
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noUncheckedIndexedAccess": true,
"useUnknownInCatchVariables": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"strictNullChecks": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["node", "vite-plugin-svgr/client", "@testing-library/jest-dom", "vitest/globals"],
"paths": {
// 顺序不能打乱,保证 website 复写 *
"@bangumi/*": ["packages/*/index.tsx", "packages/*/index.ts"],
"@bangumi/website/*": ["packages/website/src/*"]
}
},
"include": [
"./packages",
"./tests/",
".eslintrc.js",
"vitest.config.ts",
"./packages/design/.storybook/*"
]
}