- 添加TypeScript配置 - 添加Vite构建配置 - 添加项目依赖(React 18, Ant Design 5, React Router等) - 添加.gitignore配置
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
/* Path Mapping */
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@components/*": ["src/components/*"],
|
|
"@pages/*": ["src/pages/*"],
|
|
"@layout/*": ["src/layout/*"],
|
|
"@theme/*": ["src/theme/*"],
|
|
"@services/*": ["src/services/*"],
|
|
"@store/*": ["src/store/*"],
|
|
"@hooks/*": ["src/hooks/*"],
|
|
"@utils/*": ["src/utils/*"],
|
|
"@assets/*": ["src/assets/*"],
|
|
"@styles/*": ["src/styles/*"],
|
|
"@types/*": ["src/types/*"]
|
|
}
|
|
},
|
|
"include": ["src"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|