mirror of
https://github.com/VirtualHotBar/NetMount.git
synced 2026-05-06 13:20:59 +08:00
Security fixes (P0): - BaseRepository.ts: add sanitizeArgs() to filter sensitive fields - LoggerService.ts: disable console output in production - ErrorService.ts: toJSON() only includes stack in dev mode Backend security (P1): - fs.rs: add path validation for file operations - fs.rs: add Zip Slip protection in import_config Compatibility: vitest downgrade, tsconfig node types Test fixes: module paths, undefined access, unused imports
45 lines
1.3 KiB
JSON
45 lines
1.3 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",
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
|
|
/* Linting - 严格模式 */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitReturns": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": false,
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
/* 路径别名 */
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@services/*": ["./src/services/*"],
|
|
"@utils/*": ["./src/utils/*"],
|
|
"@type/*": ["./src/type/*"],
|
|
"@controller/*": ["./src/controller/*"],
|
|
"@page/*": ["./src/page/*"]
|
|
},
|
|
|
|
/* 测试类型支持 */
|
|
"types": ["vitest/globals", "@testing-library/jest-dom", "node"]
|
|
},
|
|
"include": ["src", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|