Commit 862b8119df7be399f665302ff1de9e594ab0ba95
1 parent
86c31cd5
Update tsconfig.json to enhance TypeScript configuration with stricter settings …
…and modern module resolution options.
Showing
1 changed file
with
11 additions
and
2 deletions
美国版/Food Labeling Management App UniApp/tsconfig.json
| 1 | { | 1 | { |
| 2 | - "extends": "@vue/tsconfig/tsconfig.json", | ||
| 3 | "compilerOptions": { | 2 | "compilerOptions": { |
| 3 | + "target": "ESNext", | ||
| 4 | + "useDefineForClassFields": true, | ||
| 5 | + "module": "ESNext", | ||
| 6 | + "moduleResolution": "bundler", | ||
| 7 | + "strict": true, | ||
| 8 | + "jsx": "preserve", | ||
| 9 | + "resolveJsonModule": true, | ||
| 10 | + "isolatedModules": true, | ||
| 11 | + "verbatimModuleSyntax": true, | ||
| 12 | + | ||
| 4 | "sourceMap": true, | 13 | "sourceMap": true, |
| 5 | "baseUrl": ".", | 14 | "baseUrl": ".", |
| 6 | "paths": { | 15 | "paths": { |
| 7 | "@/*": ["./src/*"] | 16 | "@/*": ["./src/*"] |
| 8 | }, | 17 | }, |
| 9 | - "lib": ["esnext", "dom"], | 18 | + "lib": ["ESNext", "DOM"], |
| 10 | "types": ["@dcloudio/types"] | 19 | "types": ["@dcloudio/types"] |
| 11 | }, | 20 | }, |
| 12 | "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] | 21 | "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] |