feat: add new tsconfig.json configuration file

This commit introduces a new tsconfig.json file to control TypeScript compiler options. The configuration includes settings for compiler options such as strict type checking, module resolution, and decorator metadata emission, as well as specifying base and output directory.
This commit is contained in:
Mathis H (Avnyr) 2024-05-13 10:52:50 +02:00
parent b3ca51f085
commit 5dd4669c33
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

60
tsconfig.json Normal file
View File

@ -0,0 +1,60 @@
{
"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/*"
],
"@routers/*": [
"src/routers/*"
],
"@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
},
}