Browse Source
- Add useDefineForClassFields for class field initialization - Remove test-playwright from includes - Add tsconfig.node.json reference - Remove redundant node_modules excludecross-platform-factory
1 changed files with 18 additions and 22 deletions
@ -1,35 +1,31 @@ |
|||||
{ |
{ |
||||
"compilerOptions": { |
"compilerOptions": { |
||||
"target": "ES2020", // Latest ECMAScript features that are widely supported by modern browsers |
"target": "ES2020", // Latest ECMAScript features that are widely supported by modern browsers |
||||
|
"useDefineForClassFields": true, |
||||
"module": "ESNext", // Use ES modules |
"module": "ESNext", // Use ES modules |
||||
"strict": true, // Enable all strict type checking options |
"lib": ["ES2020", "DOM", "DOM.Iterable"], |
||||
|
"skipLibCheck": true, |
||||
|
"moduleResolution": "bundler", |
||||
|
"allowImportingTsExtensions": true, |
||||
|
"resolveJsonModule": true, |
||||
|
"isolatedModules": true, |
||||
|
"noEmit": true, |
||||
"jsx": "preserve", // Preserves JSX to be transformed by Babel or another transpiler |
"jsx": "preserve", // Preserves JSX to be transformed by Babel or another transpiler |
||||
"moduleResolution": "node", // Use Node.js style module resolution |
"strict": true, // Enable all strict type checking options |
||||
|
"noUnusedLocals": true, |
||||
|
"noUnusedParameters": true, |
||||
|
"noFallthroughCasesInSwitch": true, |
||||
|
"baseUrl": ".", |
||||
"experimentalDecorators": true, |
"experimentalDecorators": true, |
||||
"esModuleInterop": true, // Enables compatibility with CommonJS modules for default imports |
|
||||
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export |
|
||||
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file |
|
||||
"useDefineForClassFields": true, |
|
||||
"sourceMap": true, |
|
||||
"baseUrl": "./src", // Base directory to resolve non-relative module names |
|
||||
"paths": { |
"paths": { |
||||
"@/components/*": ["components/*"], |
"@/*": ["src/*"] |
||||
"@/views/*": ["views/*"], |
} |
||||
"@/db/*": ["db/*"], |
|
||||
"@/libs/*": ["libs/*"], |
|
||||
"@/constants/*": ["constants/*"], |
|
||||
"@/store/*": ["store/*"] |
|
||||
}, |
|
||||
"lib": ["ES2020", "dom", "dom.iterable"], // Include typings for ES2020 and DOM APIs |
|
||||
}, |
}, |
||||
"include": [ |
"include": [ |
||||
"src/**/*.ts", |
"src/**/*.ts", |
||||
|
"src/**/*.d.ts", |
||||
"src/**/*.tsx", |
"src/**/*.tsx", |
||||
"src/**/*.vue", |
"src/**/*.vue" |
||||
"test-playwright/**/*.ts", |
|
||||
"test-playwright/**/*.tsx" |
|
||||
], |
], |
||||
"exclude": [ |
"references": [{ "path": "./tsconfig.node.json" }] |
||||
"node_modules" |
|
||||
] |
|
||||
} |
} |
||||
|
Loading…
Reference in new issue