9f1aebbdcb
* Bump ES target version to ES2022 I want to be able to use `WeakRef`, and per https://github.com/element-hq/element-web/issues/24913#issuecomment-2182448007, I believe this should be safe. * room.ts: Fix initialisation order It seems that ES2022 causes typescript to change the initialization order of regular properties vs parameter properties (https://github.com/microsoft/TypeScript/issues/45995), so we need to rearrange the initializations to avoid an error. In practice, it might be fine because we have enabled `babel-plugin-transform-class-properties`, which moves the initialization back after the parameter property, but we shoudn't rely on that, and anyway it upsets the linter.
15 lines
362 B
JSON
15 lines
362 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022",
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"noUnusedLocals": true,
|
|
"noEmit": true,
|
|
"declaration": true,
|
|
"strict": true
|
|
},
|
|
"include": ["./src/**/*.ts", "./spec/**/*.ts"]
|
|
}
|