36 lines
992 B
JSON
36 lines
992 B
JSON
// {
|
|
// "files": [],
|
|
// "references": [
|
|
// { "path": "./tsconfig.app.json" },
|
|
// { "path": "./tsconfig.node.json" }
|
|
// ]
|
|
// }
|
|
{
|
|
"compilerOptions": {
|
|
"types": ["node"],
|
|
"target": "ES2023",
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"esModuleInterop": true, // 修复 React 类型默认导入问题
|
|
"allowSyntheticDefaultImports": true, // 配合 esModuleInterop
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@features/*": ["./src/features/*"],
|
|
"@app/*": ["./src/app/*"],
|
|
"@/pages/*": ["./src/pages/*"],
|
|
"@/components/*": ["./src/components/*"],
|
|
"@/assets/*": ["./src/assets/*"],
|
|
"@/ui/*": ["./src/ui/*"],
|
|
"@/utils/*": ["./src/utils/*"]
|
|
},
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true
|
|
},
|
|
"include": ["src"]
|
|
} |