2022-05-06 18:32:09 +08:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2024-07-24 23:07:46 +08:00
|
|
|
"target": "es2022",
|
2022-05-30 17:09:13 +08:00
|
|
|
"module": "es2020",
|
2023-07-01 06:21:18 +08:00
|
|
|
"jsx": "react-jsx",
|
2024-07-24 23:07:46 +08:00
|
|
|
"lib": ["es2022", "dom", "dom.iterable"],
|
2023-06-30 23:43:28 +08:00
|
|
|
|
|
|
|
// From Matrix-JS-SDK
|
|
|
|
"strict": true,
|
|
|
|
"noEmit": true,
|
|
|
|
"noEmitOnError": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"esModuleInterop": true,
|
|
|
|
"noUnusedLocals": true,
|
2024-02-16 12:22:15 +08:00
|
|
|
"moduleResolution": "bundler",
|
2023-09-23 06:05:13 +08:00
|
|
|
"declaration": true,
|
2023-11-17 20:26:25 +08:00
|
|
|
"resolveJsonModule": true,
|
2024-07-24 23:07:46 +08:00
|
|
|
// Workaround for https://github.com/microsoft/TypeScript/issues/55132
|
|
|
|
"useDefineForClassFields": false,
|
2024-09-04 04:18:34 +08:00
|
|
|
"allowImportingTsExtensions": true,
|
2024-02-16 12:22:15 +08:00
|
|
|
"paths": {
|
|
|
|
// These imports within @livekit/components-core and
|
|
|
|
// @livekit/components-react are broken under the "bundler" module
|
|
|
|
// resolution mode, so we need to resolve them manually
|
|
|
|
"livekit-client/dist/src/room/Room": [
|
|
|
|
"./node_modules/livekit-client/dist/src/room/Room.d.ts"
|
|
|
|
],
|
2024-05-27 16:54:50 +08:00
|
|
|
"livekit-client/dist/src/room/track/TrackPublication": [
|
|
|
|
"./node_modules/livekit-client/dist/src/room/track/TrackPublication.d.ts"
|
|
|
|
],
|
2024-02-16 12:22:15 +08:00
|
|
|
"livekit-client/dist/src/room/participant/Participant": [
|
|
|
|
"./node_modules/livekit-client/dist/src/room/participant/Participant.d.ts"
|
2024-03-20 21:04:01 +08:00
|
|
|
],
|
|
|
|
"livekit-client/dist/src/proto/livekit_models_pb": [
|
2024-03-21 16:57:17 +08:00
|
|
|
"./node_modules/@livekit/protocol/src/gen/livekit_models_pb.d.ts"
|
2024-02-16 12:22:15 +08:00
|
|
|
]
|
|
|
|
},
|
2023-06-30 23:43:28 +08:00
|
|
|
|
|
|
|
// TODO: Enable the following options later.
|
|
|
|
// "forceConsistentCasingInFileNames": true,
|
|
|
|
// "noFallthroughCasesInSwitch": true,
|
|
|
|
// "noImplicitOverride": true,
|
|
|
|
// "noImplicitReturns": true,
|
|
|
|
// "noPropertyAccessFromIndexSignature": true,
|
|
|
|
// "noUncheckedIndexedAccess": true,
|
|
|
|
// "noUnusedParameters": true,
|
2023-09-23 06:05:13 +08:00
|
|
|
|
2024-02-10 00:04:01 +08:00
|
|
|
"plugins": [{ "name": "typescript-eslint-language-service" }]
|
2022-05-06 18:32:09 +08:00
|
|
|
},
|
2022-10-26 16:47:44 +08:00
|
|
|
"include": [
|
2023-07-06 18:47:37 +08:00
|
|
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
2022-12-10 03:34:25 +08:00
|
|
|
"./src/**/*.ts",
|
2024-08-27 21:45:39 +08:00
|
|
|
"./src/**/*.tsx"
|
2024-02-10 00:04:01 +08:00
|
|
|
]
|
2022-05-06 18:32:09 +08:00
|
|
|
}
|