-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
41 lines (37 loc) · 1.68 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"compilerOptions": {
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"module": "commonjs" /* Specify what module code is generated. */,
"rootDir": "." /* Specify the root folder within your source files. */,
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
"moduleResolution": "node",
"outDir": "dist",
"lib": ["ESNext", "dom"], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
"removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
"allowJs": true,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"strictNullChecks": true /* Enable strict null checks. */,
// Module resolution
"resolveJsonModule": true,
//linting
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true /* Enable all strict type-checking options. */,
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
// Decorators
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"baseUrl": ".",
"paths": {
"#/*": ["./*"],
"tsoa": ["node_modules/tsoa/dist"],
"tsoa/": ["node_modules/tsoa/dist/"]
}
},
"include": ["./**/*.ts"],
"exclude": ["node_modules/**/*", "openapi.json"],
"ts-node": {
"require": ["tsconfig-paths/register"]
}
}