20250610 build、lint、dev均配置成功

This commit is contained in:
mac·ufutx 2025-06-10 16:15:04 +08:00
parent 4c8f9b53aa
commit 886ecb6c2e
3 changed files with 42 additions and 20 deletions

View File

@ -27,9 +27,9 @@
"vue-router": "^4.5.1"
},
"devDependencies": {
"@types/axios": "^0.9.36",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@types/node": "^20.19.0",
"@typescript-eslint/eslint-plugin": "6.13.2",
"@typescript-eslint/parser": "6.13.2",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/eslint-config-typescript": "12.0.0",
"@vue/tsconfig": "^0.7.0",
@ -48,6 +48,6 @@
"typescript": "5.1.6",
"vite": "^4.4.9",
"vite-plugin-image-optimizer": "^1.1.8",
"vue-tsc": "^2.2.10"
"vue-tsc": "1.8.14"
}
}

View File

@ -2,9 +2,14 @@
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"baseUrl": ".",
"lib": [
"ES2022",
"DOM"
],
// DOM
"paths": {
"@/*": [
"src/*"
"./src/*"
]
//
},
@ -14,22 +19,26 @@
"vite/client",
"vue"
],
"incremental": true, //
// Vue
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// "erasableSyntaxOnly": true, //
"noFallthroughCasesInSwitch": true,
// "noUncheckedSideEffectImports": true
// "erasableSyntaxOnly": true, //
"noFallthroughCasesInSwitch": true
// "noUncheckedSideEffectImports": true
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue", // Vue
"vite.config.ts", // Vite
"src/main.ts" //
"src/**/*.vue",
// Vue
"vite.config.ts",
// Vite
"src/main.ts"
//
]
}

View File

@ -2,32 +2,45 @@
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"lib": ["ES2023"],
"lib": [
"ES2022",
"DOM",
],
"paths": {
"@/*": [
"./src/*"
]
//
},
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"esModuleInterop": true,
// CommonJS
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnlsy": true,
// "erasableSyntaxOnlsy": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
"incremental": true
// "noUncheckedSideEffectImports": true
},
// "include": ["vite.config.ts"]
// "include": ["vite.config.ts"]
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue", // Vue
"vite.config.ts", // Vite
"src/main.ts" //
"src/**/*.vue",
// Vue
"vite.config.ts",
// Vite
"src/main.ts"
//
]
}