-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
36 lines (36 loc) · 1.15 KB
/
Copy pathtsconfig.json
File metadata and controls
36 lines (36 loc) · 1.15 KB
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
{
"compilerOptions": {
// https://stackoverflow.com/questions/61305578/what-typescript-configuration-produces-output-closest-to-node-js-14-capabilities/61305579#61305579
"lib": [
"ES2022",
"DOM",
"DOM.Iterable"
],
"module": "CommonJS",
"target": "ES2022",
// TODO: maybe true Process & infer types from .js files.
"allowJs": true,
// Don't emit; allow Babel to transform files.
"noEmit": true,
// TODO: Enable strictest settings like strictNullChecks & noImplicitAny.
"strict": false,
"strictNullChecks": true,
// Import non-ES modules as default imports.
"esModuleInterop": true,
"jsx": "preserve",
"resolveJsonModule": true
},
// https://www.typescriptlang.org/tsconfig#files
// https://www.typescriptlang.org/tsconfig#include
// https://www.typescriptlang.org/tsconfig#exclude
// see https://github.com/Microsoft/TypeScript/wiki/FAQ#why-is-a-file-in-the-exclude-list-still-picked-up-by-the-compiler
// use `yarn tsc --listFiles` to list what files are included in the compilation,
// and `yarn tsc --traceResolution` to see why they were included
"include": [
"./types/",
"./app/"
],
"exclude": [
"./app/sw/"
]
}