-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
29 lines (23 loc) · 1.17 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": ["node_modules", "dist"],
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"typeRoots": ["./node_modules/@types"],
"target": "ESNext", // TypeScript is not used for building, allow all modern features
"module": "CommonJS",
// `tsc` only used to build type declaration files (`.d.ts`)
// TODO: add support for types
"declaration": false,
"declarationMap": false, // Allow jumping to source file instead of 'd.ts' file
"allowJs": true,
"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
"removeComments": true,
"strict": true, // Of course!
},
}