-
Notifications
You must be signed in to change notification settings - Fork 19
/
tsconfig.base.json
31 lines (31 loc) · 1.39 KB
/
tsconfig.base.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
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"module": "esnext",
"target": "ESNext",
"allowJs": true,
"esModuleInterop": true,
"incremental": true,
"baseUrl": ".",
"paths": {
"@common/*": ["./common/src/*"], // shared
"@backend/*": ["backend/src/*"],
"@web/*": ["web/src/*"]
},
"types": ["vitest/globals"],
"jsx": "react-jsx", // better frontend/backend tooling interoperability (ts-jest)
"moduleResolution": "bundler", // assume esbuild/webpack/turbopack is used for bundling and let them handle imports
"declaration": true /* Generates corresponding '.d.ts' file. */,
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
"sourceMap": true /* Generates corresponding '.map' file. */,
"experimentalDecorators": true, // enable decorators
"emitDecoratorMetadata": true, // for runtime use of decorators
"strictPropertyInitialization": true,
"strictNullChecks": true,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"noImplicitOverride": true // must use override
// "noUnusedLocals": true /* Report errors on unused locals. */,
// "noUnusedParameters": true /* Report errors on unused parameters. */,
}
}