- 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.
53 lines
1.3 KiB
JSON
53 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": "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"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "./tsconfig.node.json"
|
|
}
|
|
]
|
|
} |