-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
54 lines (50 loc) · 1.59 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
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"lib": ["es2021", "dom"],
"outDir": "dist",
"allowJs": false,
"checkJs": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"composite": true,
"downlevelIteration": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedIndexedAccess": true,
// "moduleResolution": "node", // "bundler" for bun
// "allowImportingTsExtensions": true,
// "verbatimModuleSyntax": true, // If enabled, Jest fails with ESM issues
// "noEmit": true, // Does not output JS files
// Best practices
"strict": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"alwaysStrict": true,
"skipLibCheck": true,
// Some stricter flags
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": true,
"noPropertyAccessFromIndexSignature": true
},
"ts-node": {
"files": true
},
"include": [
"jest.config.ts",
"src/**/*.ts",
"entities/**/*.ts",
"systems/**/*.ts",
"assets/**/*.ts"
],
"exclude": ["node_modules", ".vscode"]
}