From 5dd4669c33df86ba8a51b663a83f2cb7d888a258 Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 13 May 2024 10:52:50 +0200 Subject: [PATCH] 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. --- tsconfig.json | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..4d1b8aa --- /dev/null +++ b/tsconfig.json @@ -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 + }, +}