-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
tsconfig.json
37 lines (35 loc) · 970 Bytes
/
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
31
32
33
34
35
36
37
/*
* Config for `tsc` and `tsserver`, currently only used for typechecking.
* Our main build is via `esbuild` which can handle `.ts`, but doesn't do any
* checking on its own. To typecheck, run `tsc`.
*
* Extended JSON — comments and trailing commas are good here.
*/
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"baseUrl": "./pkg/lib",
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"incremental": true,
"jsx": "react",
"lib": [
"dom",
"es2020"
],
"moduleResolution": "node",
"noEmit": true, // we only use `tsc` for type checking
"strict": true,
"target": "es2020",
},
"include": [
"pkg/**/*"
],
"exclude": [
// these are part of the build system, not the app
"pkg/lib/esbuild-*.js",
"pkg/lib/cockpit-*-plugin.js",
"pkg/lib/*2po.js"
],
}