- tsconfig: noImplicitAny:true + jsx:react-jsx + target:ES2018 + skipLibCheck - 新增 eslint.config.mjs (flat config v9, no-explicit-any:error) - 新增 .prettierrc + lint/format/typecheck 脚本 - prod: pure_funcs 添加 console.warn 防泄漏 - config: 生产环境强制清空 DEV_USER/DEV_PASS - .env.production: 清空硬编码 tenant_id - @types/node + @noble/ciphers 依赖
32 lines
739 B
JSON
32 lines
739 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2018",
|
|
"module": "commonjs",
|
|
"lib": ["ES2018"],
|
|
"removeComments": false,
|
|
"preserveConstEnums": true,
|
|
"moduleResolution": "node",
|
|
"experimentalDecorators": true,
|
|
"noImplicitAny": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"outDir": "lib",
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"strictNullChecks": true,
|
|
"sourceMap": true,
|
|
"rootDir": "src",
|
|
"jsx": "react-jsx",
|
|
"allowJs": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"typeRoots": ["node_modules/@types"],
|
|
"types": ["node"],
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
},
|
|
"baseUrl": "."
|
|
},
|
|
"include": ["src"],
|
|
"compileOnSave": false
|
|
}
|