1. Vue module augmentation (src/shims-vue.d.ts) *Added ComponentCustomProperties so this.$store is typed as Store<RootState> in components. *Extended Window for $ and jQuery so the jQuery global assignment type-checks. 2. Convert main.js to main.ts *Renamed main.js to main.ts. *Removed the vue.config.js entry override so the Vue CLI TypeScript plugin uses main.ts. *Updated jest.config.js to exclude main.ts from coverage. *Adjusted the error handler to use unknown for err and vm to match Vue’s types. *Added as unknown to the jQuery require for type safety.
21 lines
534 B
JSON
21 lines
534 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "node",
|
|
"strict": false,
|
|
"noImplicitAny": false,
|
|
"strictNullChecks": false,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"],
|
|
"exclude": ["node_modules", "dist", "playwright-tests"]
|
|
}
|