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:
parent
b3ca51f085
commit
5dd4669c33
60
tsconfig.json
Normal file
60
tsconfig.json
Normal 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
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user