refactor: update package.json and improve ESLint configuration

- Removed outdated Vue CLI plugins and added new ESLint rules and plugins for better TypeScript support.
- Enhanced ESLint configuration with parser options and overrides for Vue files.

feat: refactor router configuration for improved readability

- Reformatted router configuration for better structure and clarity.
- Ensured consistent use of async component imports and updated route definitions.

chore: update TypeScript configuration for better compatibility

- Adjusted tsconfig.json to target ES2020 and include necessary libraries.
- Added a new tsconfig.node.json for Node.js specific configurations.

fix: update Vite configuration for proper asset handling

- Modified vite.config.js to specify input for Rollup, ensuring correct asset management.
This commit is contained in:
bighuixiang
2025-06-18 21:25:25 +08:00
parent 3a52cc1e53
commit 5f4e1176f0
10 changed files with 1135 additions and 8815 deletions

View File

@@ -1,49 +1,53 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"moduleResolution": "node",
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
"resolveJsonModule": true,//引入json文件
"esModuleInterop": true,//引入json文件
"sourceMap": true,
"allowJs": true, //编译时允许有js
"baseUrl": ".",
"outDir": "./",
"types": [
"webpack-env"
"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": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
/* Path mapping */
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
]
},
/* Additional options for Vue 3 */
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"paths": {
"@/*": [
"src/*"
],
"three/ *": ["three/addons/postprocessing/*"]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
"exclude": [
"node_modules",
"dist"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"src/**/*.js",
"src/**/*.svg",
"src/**/*.gif",
],
"exclude": [
"node_modules"
]
}
}