-
Notifications
You must be signed in to change notification settings - Fork 82
/
tsconfig.json
74 lines (74 loc) · 2.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"lib": ["dom", "es2020"],
"module": "esnext",
// Use types only from these packages (not everything in package.json, which is the default).
// Note that TypeScript's `/// <reference />` is the same as adding an entry here - it's global
// to the whole project.
"types": [
"@types/dom-mediacapture-transform",
"@webgpu/types",
// Required for standalone.ts
"@types/jquery",
"@types/w3c-image-capture",
],
/* Output options */
"noEmit": true,
/* Strict type-checking options */
"allowJs": true,
"checkJs": false,
"strict": true,
/* tsc lint options */
"allowUnusedLabels": false,
"noImplicitOverride": true,
"noImplicitReturns": true,
/* These should be caught by eslint instead */
"noFallthroughCasesInSwitch": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"allowUnreachableCode": true,
/* Compiler warnings we intentionally don't use */
// - Would be nice, but produces lots of errors that probably aren't worth fixing
"noUncheckedIndexedAccess": false,
// - We could make our code pass this, but it doesn't seem to provide much value to us
"noPropertyAccessFromIndexSignature": false,
// - Doesn't work with @webgpu/types right now, also has annoying interactions and limited value
"exactOptionalPropertyTypes": false,
/* Module Options */
"moduleResolution": "node",
"esModuleInterop": false,
"isolatedModules": true,
"skipLibCheck": true,
"target": "es2020"
// @tsconfig/strictest is a useful reference for new options:
// https://github.com/tsconfig/bases/blob/main/bases/strictest.json
},
"include": [
"src/**/*.ts",
"src/external/**/*.js",
],
"typedocOptions": {
"entryPointStrategy": "expand",
"entryPoints": [
"src/common/framework/",
"src/common/util/",
"src/webgpu/",
],
"exclude": [
"**/*.spec.ts",
"**/*.html.ts",
"src/*/listing.ts",
"src/webgpu/util/device_pool.ts",
],
"excludeInternal": true,
"excludeProtected": true,
"excludePrivate": true,
"validation": {
"invalidLink": true,
"notExported": false,
},
"readme": "./docs/helper_index.txt",
"out": "docs/tsdoc/"
}
}