feat(task4): update TypeScript configs to use shared presets

This commit is contained in:
2026-07-02 15:31:29 +08:00
parent 6f6d27d7ea
commit 5cf7fe05e9
6 changed files with 27 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "frontend",
"name": "@gongxue/admin",
"private": true,
"version": "0.0.0",
"type": "module",
@@ -28,6 +28,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "~6.0.2",
"vite": "^8.0.9"
"vite": "^8.0.9",
"@gongxue/typescript-config": "*"
}
}

View File

@@ -1,25 +1,8 @@
{
"extends": "@gongxue/typescript-config/react-vite.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023", "DOM"],
"module": "esnext",
"types": ["vite/client"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
"types": ["vite/client"]
},
"include": ["src"]
}

View File

@@ -1,24 +1,19 @@
{
"extends": "@gongxue/typescript-config/base.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023"],
"module": "esnext",
"types": ["node"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"types": ["node"]
},
"include": ["vite.config.ts"]
}

View File

@@ -1,5 +1,5 @@
{
"name": "backend",
"name": "@gongxue/server",
"version": "0.0.1",
"description": "",
"author": "",
@@ -67,8 +67,9 @@
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
"typescript": "~6.0.2",
"typescript-eslint": "^8.20.0",
"@gongxue/typescript-config": "*"
},
"jest": {
"moduleFileExtensions": [

View File

@@ -1,25 +1,7 @@
{
"extends": "@gongxue/typescript-config/nestjs.json",
"compilerOptions": {
"module": "nodenext",
"moduleResolution": "nodenext",
"resolvePackageJsonExports": true,
"esModuleInterop": true,
"isolatedModules": true,
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"strictBindCallApply": false,
"noFallthroughCasesInSwitch": false
"baseUrl": "./"
}
}