2018-12-05 15:46:37 -09:00
|
|
|
{
|
2019-06-21 06:31:01 -08:00
|
|
|
"extends": "./node_modules/gts/tsconfig-google.json",
|
2018-12-05 15:46:37 -09:00
|
|
|
"compilerOptions": {
|
2025-03-10 15:06:11 -08:00
|
|
|
"lib": ["dom", "ES2023"],
|
2019-10-25 13:50:37 -08:00
|
|
|
"module": "esnext",
|
2026-02-19 15:07:16 -09:00
|
|
|
"rootDir": "./src",
|
2024-04-24 09:56:53 -08:00
|
|
|
// 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",
|
2024-07-29 17:49:07 -08:00
|
|
|
"@types/w3c-image-capture",
|
2024-04-24 09:56:53 -08:00
|
|
|
],
|
2018-12-21 17:50:49 -09:00
|
|
|
/* Output options */
|
2019-01-07 16:27:17 -09:00
|
|
|
"noEmit": true,
|
2018-12-21 17:50:49 -09:00
|
|
|
/* Strict type-checking options */
|
2022-09-08 11:13:59 -08:00
|
|
|
"allowJs": true,
|
2023-11-01 12:27:03 -08:00
|
|
|
"checkJs": false,
|
2020-02-06 17:21:01 -09:00
|
|
|
"strict": true,
|
2021-06-08 17:10:59 -08:00
|
|
|
/* tsc lint options */
|
2023-11-01 12:27:03 -08:00
|
|
|
"allowUnusedLabels": false,
|
2023-11-01 14:03:24 -08:00
|
|
|
"noImplicitOverride": true,
|
2020-02-06 17:21:01 -09:00
|
|
|
"noImplicitReturns": true,
|
2022-02-23 10:42:42 -09:00
|
|
|
/* These should be caught by eslint instead */
|
|
|
|
|
"noFallthroughCasesInSwitch": false,
|
2021-06-08 17:10:59 -08:00
|
|
|
"noUnusedLocals": false,
|
2023-11-01 13:19:48 -08:00
|
|
|
"noUnusedParameters": false,
|
2021-06-08 17:10:59 -08:00
|
|
|
"allowUnreachableCode": true,
|
2023-11-01 12:27:03 -08:00
|
|
|
/* 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,
|
2018-12-13 21:09:16 -09:00
|
|
|
/* Module Options */
|
|
|
|
|
"moduleResolution": "node",
|
2022-05-16 21:28:37 -08:00
|
|
|
"esModuleInterop": false,
|
2023-11-01 12:27:03 -08:00
|
|
|
"isolatedModules": true,
|
2022-05-16 21:28:37 -08:00
|
|
|
"skipLibCheck": true,
|
2023-03-15 12:11:37 -08:00
|
|
|
"target": "es2020"
|
2023-11-01 12:27:03 -08:00
|
|
|
// @tsconfig/strictest is a useful reference for new options:
|
|
|
|
|
// https://github.com/tsconfig/bases/blob/main/bases/strictest.json
|
2018-12-21 17:50:49 -09:00
|
|
|
},
|
2022-09-08 11:13:59 -08:00
|
|
|
"include": [
|
|
|
|
|
"src/**/*.ts",
|
|
|
|
|
"src/external/**/*.js",
|
|
|
|
|
],
|
2021-06-08 17:10:59 -08:00
|
|
|
"typedocOptions": {
|
2022-03-09 13:50:10 -09:00
|
|
|
"entryPointStrategy": "expand",
|
2021-06-08 17:10:59 -08:00
|
|
|
"entryPoints": [
|
|
|
|
|
"src/common/framework/",
|
|
|
|
|
"src/common/util/",
|
|
|
|
|
"src/webgpu/",
|
|
|
|
|
],
|
|
|
|
|
"exclude": [
|
|
|
|
|
"**/*.spec.ts",
|
2021-06-10 17:49:39 -08:00
|
|
|
"**/*.html.ts",
|
2021-06-08 17:10:59 -08:00
|
|
|
"src/*/listing.ts",
|
2021-06-09 17:56:04 -08:00
|
|
|
"src/webgpu/util/device_pool.ts",
|
2021-06-08 17:10:59 -08:00
|
|
|
],
|
|
|
|
|
"excludeInternal": true,
|
|
|
|
|
"excludeProtected": true,
|
|
|
|
|
"excludePrivate": true,
|
2022-03-09 13:50:10 -09:00
|
|
|
"validation": {
|
|
|
|
|
"invalidLink": true,
|
|
|
|
|
"notExported": false,
|
|
|
|
|
},
|
2021-06-08 17:10:59 -08:00
|
|
|
"readme": "./docs/helper_index.txt",
|
|
|
|
|
"out": "docs/tsdoc/"
|
|
|
|
|
}
|
2018-12-05 15:46:37 -09:00
|
|
|
}
|