mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
Bump typescript to 6
And adapt to it.
This commit is contained in:
parent
44c5f759dc
commit
9a57570194
4 changed files with 9 additions and 6 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 92262f14c090fabe94f5f6dd9b85ce78fa85d600
|
||||
Subproject commit 9b8b83e48284409190f32d65fc90c8833f1d874a
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
"@types/react": "18.3.12",
|
||||
"@types/react-dom": "18.3.1",
|
||||
"@types/throttle-debounce": "5.0.2",
|
||||
"@typescript-eslint/eslint-plugin": "8.46.0",
|
||||
"@typescript-eslint/eslint-plugin": "8.60.0",
|
||||
"esbuild-wasm": "0.28.0",
|
||||
"eslint": "8.57.1",
|
||||
"eslint-config-standard": "17.1.0",
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
"stylelint-config-standard-scss": "17.0.0",
|
||||
"stylelint-formatter-pretty": "4.0.1",
|
||||
"stylelint-use-logical": "2.1.3",
|
||||
"typescript": "5.9.3"
|
||||
"typescript": "6.0.3"
|
||||
},
|
||||
"scripts": {
|
||||
"eslint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx pkg/ test/common/",
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ function MockPeer() {
|
|||
};
|
||||
|
||||
this.control = function(options) {
|
||||
console.assert(typeof command === 'string');
|
||||
console.assert(typeof options.command === 'string');
|
||||
console.assert(options !== null && typeof options === 'object');
|
||||
console.assert(arguments.length == 1);
|
||||
window.setTimeout(function() { peer.dispatchEvent("control", channel, options) }, 5);
|
||||
|
|
|
|||
|
|
@ -11,16 +11,19 @@
|
|||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"baseUrl": "./pkg/lib",
|
||||
"esModuleInterop": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"noUncheckedSideEffectImports": false,
|
||||
"incremental": true,
|
||||
"jsx": "react",
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2021"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"types": ["*"],
|
||||
"paths": {
|
||||
"*": ["./pkg/lib/*"]
|
||||
},
|
||||
"noEmit": true, // we only use `tsc` for type checking
|
||||
"strict": true,
|
||||
"target": "es2021",
|
||||
|
|
|
|||
Loading…
Reference in a new issue