-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
29 lines (25 loc) · 1.28 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
{
"include": ["src/**/*"],
"exclude": ["./dist/**/*"],
"compilerOptions": {
/* Paths */
"outDir": "./dist/dts",
"typeRoots": ["./node_modules/@types", "./type-definitions"],
/* 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
"jsx": "react",
/* Build */
// `tsc` only used to build type declaration files (`.d.ts`)
"declaration": true,
"declarationMap": true, // Allow jumping to source file instead of 'd.ts' file
/* 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!
}
}