-
Notifications
You must be signed in to change notification settings - Fork 57
/
tsconfig.json
30 lines (26 loc) · 1.32 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
{
"include": ["./**/*", "./**/.*"],
"exclude": ["./dist/**/*"],
"compilerOptions": {
/* Paths */
"outDir": "./dist",
"typeRoots": ["./node_modules/@types", "./type-definitions"],
"types": ["node", "jest"],
/* Project */
"target": "ESNext", // TypeScript is not used for building, allow all modern features
"module": "ESNext", // TypeScript is not used for building, allow all modern features
/* Build */
// `tsc` only used to build type declaration files (`.d.ts`)
"declaration": false,
"declarationMap": false, // Allow jumping to source file instead of 'd.ts' file
"noEmit": true,
/* Imports */
"moduleResolution": "node", // Yup, we are using Node
"forceConsistentCasingInFileNames": true, // Error out if import and file system have a casing mismatch. Recommended by TS.
"esModuleInterop": true, // Improve importing from CJS modules, recommended by TS: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop
"skipLibCheck": true, // Significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS.
"resolveJsonModule": true, // Allow importing .json files
/* Additional */
"strict": true // Of course!
}
}