-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
30 lines (30 loc) · 1.14 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
// see https://www.totaltypescript.com/tsconfig-cheat-sheet
{
"compilerOptions": {
"baseUrl": ".",
"allowJs": true,
"checkJs": true,
"noEmit": true,
// "NodeNext" if only transpiling with `tsc`, "Preserve" if using a bundler
"module": "NodeNext",
// do not use "node" as it does not support package.json "exports" field
"moduleResolution": "NodeNext",
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"resolveJsonModule": true,
"strict": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
// make indexing stricter
"noUncheckedIndexedAccess": true,
// no accidentally global scripts
"moduleDetection": "force",
// enforced 'type-only' imports
"verbatimModuleSyntax": true,
// Ensure that casing is correct in imports
"forceConsistentCasingInFileNames": true,
// Skip type checking all .d.ts files
"skipLibCheck": true,
// Allow importing .ts files, needed for running native in Node.js
"allowImportingTsExtensions": true
}
}