This commit updates the TypeScript compilerOptions in tsconfig.json. The changes include higher module resolution targets, adjustments in various compiler constraints, and the modification of paths for baseUrl. This will help improve the code's compile-time and run-time behavior. Signed-off-by: Mathis <yidhra@tuta.io>
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"declaration": true,
|
|
"removeComments": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"target": "ES2021",
|
|
"sourceMap": true,
|
|
"outDir": "./dist",
|
|
"baseUrl": "./",
|
|
"incremental": true,
|
|
"skipLibCheck": true,
|
|
"strictNullChecks": true,
|
|
"noImplicitAny": true,
|
|
"strictBindCallApply": true,
|
|
"forceConsistentCasingInFileNames": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"paths": {
|
|
"@services/*": [
|
|
"src/services/*"
|
|
],
|
|
"@controllers/*": [
|
|
"src/controllers/*"
|
|
],
|
|
"@routes/*": [
|
|
"src/routes/*"
|
|
],
|
|
"@utils/*": [
|
|
"src/utils/*"
|
|
],
|
|
"@interfaces/*": [
|
|
"src/interfaces/*"
|
|
],
|
|
"@validators/*": [
|
|
"src/validators/*"
|
|
]
|
|
},
|
|
"resolveJsonModule": true,
|
|
"declarationMap": true,
|
|
"noEmitOnError": true,
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"strictFunctionTypes": true,
|
|
"strictPropertyInitialization": true,
|
|
"noImplicitThis": true,
|
|
"useUnknownInCatchVariables": true,
|
|
"alwaysStrict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noImplicitReturns": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"allowUnusedLabels": true,
|
|
"allowUnreachableCode": true
|
|
},
|
|
}
|