Skip to content

Commit b20c77e

Browse files
dependabot[bot]ShradhaGupta31
authored andcommitted
build(deps-dev): bump eslint from 9.39.4 to 10.1.0
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.4 to 10.1.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.4...v10.1.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent c2e8b65 commit b20c77e

18 files changed

+396
-511
lines changed

package-lock.json

Lines changed: 381 additions & 482 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
"ws": "^8.2.1"
3636
},
3737
"devDependencies": {
38+
"@eslint/js": "^10.0.1",
39+
"@types/eslint-scope": "^9.1.0",
3840
"@types/jest": "^30.0.0",
3941
"@types/md5": "^2.1.33",
4042
"@types/node": "^25.0.1",
4143
"@types/ws": "^8.2.0",
4244
"babel-loader": "^10.0.0",
4345
"babel-plugin-transform-remove-console": "^6.9.4",
44-
"eslint": "^9.25.1",
46+
"eslint": "^10.1.0",
4547
"eslint-config-prettier": "^10.1.2",
4648
"filereader": "^0.10.3",
4749
"jest": "^30.0.0",

src/core/AMTDesktop.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export class AMTDesktop extends Desktop {
106106
this.onKvmDataPending = []
107107
this.onKvmDataAck = -1
108108
this.kvmDataSupported = false
109-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
110109
for (const i in this.sparecache) {
111110
delete this.sparecache[i]
112111
}

src/core/AMTIDER.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export class AMTIDER {
113113
this.acc += data
114114
console.debug(`IDER-ProcessData: ${this.acc.length}, ${TypeConverter.rstr2hex(this.acc)}`)
115115
// Process as many commands as possible
116-
// eslint-disable-next-line no-constant-condition
117116
while (true) {
118117
// checks if the received data contains at least 8 bytes in the header.
119118
// If not, it returns 0, indicating that there is not enough data to process.
@@ -407,12 +406,10 @@ export class AMTIDER {
407406
}
408407
if (fr.readAsBinaryString != null) {
409408
if (this.g_media != null) {
410-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
411409
fr.readAsBinaryString(this.g_media.slice(lba, lba + len))
412410
}
413411
} else {
414412
if (this.g_media != null) {
415-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
416413
fr.readAsArrayBuffer(this.g_media.slice(lba, lba + len))
417414
}
418415
}

src/core/AMTKvmDataRedirector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { type IKvmDataCommunicator } from './Interfaces'
88

99
export class AMTKvmDataRedirector extends AMTRedirector implements IKvmDataCommunicator {
1010
onSendKvmData: (data: string) => void
11-
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
1211
constructor(config: RedirectorConfig) {
1312
super(config)
1413
}

src/core/AMTRedirector.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export class AMTRedirector implements ICommunicator {
126126
// Using this generic signature allows us to pass the WebSocket type from unit tests or in production from a web browser
127127
this.connectState = 0
128128
// let ws = new c(this.getWsLocation()) // using create function c invokes the constructor WebSocket()
129-
// eslint-disable-next-line new-cap
130129
this.socket = new c(this.getWsLocation(), this.authToken) // The "p=2" indicates to the relay that this is a REDIRECTION session
131130
this.socket.onopen = this.onSocketConnected.bind(this)
132131
this.socket.onmessage = this.onMessage.bind(this)
@@ -342,15 +341,13 @@ export class AMTRedirector implements ICommunicator {
342341
curptr += noncelen + 1
343342

344343
// QOP
345-
let qoplen = 0
346344
let qop = ''
347345
const cnonce: string = this.generateRandomNonce(32)
348346
const snc = '00000002'
349347
let extra = ''
350348
if (authType === 4) {
351-
qoplen = authDataBuf.charCodeAt(curptr)
349+
const qoplen = authDataBuf.charCodeAt(curptr)
352350
qop = authDataBuf.substring(curptr + 1, curptr + 1 + qoplen)
353-
curptr += qoplen + 1
354351
extra = `${snc}:${cnonce}:${String(qop)} :`
355352
}
356353

@@ -435,7 +432,6 @@ export class AMTRedirector implements ICommunicator {
435432
TypeConverter.IntToStrX(this.amtSequence++) +
436433
String.fromCharCode(0x00, 0x00, 0x1b, 0x00, 0x00, 0x00)
437434
)
438-
// eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-argument
439435
if (this.protocol === 1) {
440436
this.amtKeepAliveTimer = setInterval(this.sendAmtKeepAlive.bind(this), 2000)
441437
}

src/core/Converter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export const TypeConverter = {
7979
let r = ''
8080
if (x !== 0 && (!isTruthy(x) || x == null)) return '(Null)'
8181
if (x instanceof Array) {
82-
// eslint-disable-next-line @typescript-eslint/no-for-in-array
8382
for (const i in x) {
8483
r =
8584
r + '<br />' + String(this.gap(c)) + 'Item #' + String(i) + ': ' + String(this.ObjectToStringEx(x[i], c + 1))
@@ -101,7 +100,6 @@ export const TypeConverter = {
101100
return '(Null)'
102101
}
103102
if (x instanceof Array) {
104-
// eslint-disable-next-line @typescript-eslint/no-for-in-array
105103
for (const i in x) {
106104
r =
107105
r + '\r\n' + String(this.gap2(c)) + 'Item #' + String(i) + ': ' + String(this.ObjectToStringEx2(x[i], c + 1))
@@ -150,8 +148,7 @@ export const TypeConverter = {
150148
// Convert a raw string to a hex string
151149
rstr2hex(input: string): string {
152150
let r = ''
153-
let i = 0
154-
for (i = 0; i < input.length; i++) {
151+
for (let i = 0; i < input.length; i++) {
155152
r = r + String(this.char2hex(input.charCodeAt(i)))
156153
}
157154
return r

src/core/IDERDataProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ export class IDERDataProcessor {
368368
console.debug('SCSI: MODE_SENSE_6', dev)
369369

370370
if (cdb.charCodeAt(2) === 0x3f && cdb.charCodeAt(3) === 0x00) {
371-
let a = 0
372-
let b = 0
371+
let a: number
372+
let b: number
373373
switch (dev) {
374374
case 0xa0: // DEV_FLOPPY
375375
if (this.ider.floppy == null) {

src/core/ImageData/DataProcessor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export class DataProcessor implements IDataProcessor {
2020
parent: Desktop
2121
constructor(comm: ICommunicator, parent: Desktop) {
2222
this.acc = ''
23-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
2423
this.stateProcessorFac = new StateProcessorFactory(comm, parent, this.updateRFBState.bind(this))
2524
this.parent = parent
2625
}
@@ -32,7 +31,7 @@ export class DataProcessor implements IDataProcessor {
3231
processData(data: string): any {
3332
if (!isTruthy(data)) return
3433
this.acc += data
35-
let cmdSize = 0
34+
let cmdSize: number
3635
console.debug(`Process Data ACC length: ${this.acc.length}`)
3736
while (this.acc.length > 0) {
3837
const stateProcessor: IStateProcessor = this.stateProcessorFac.getProcessor(this.parent.state)

src/core/ImageData/RLEDecoder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RLEDecoder implements IRLEDecoder {
2929
let runlengthdecode
3030
const palette: number[] = []
3131
let rlecount = 0
32-
let runlength = 0
32+
let runlength: number
3333
let i: number
3434
// this.parent.Debug("RECT RLE (" + (datalen - 5) + ", " + subencoding + "):" + rstr2hex(data.substring(21, 21 + (datalen - 5))));
3535
if (subencoding === 0) {
@@ -45,7 +45,7 @@ class RLEDecoder implements IRLEDecoder {
4545
ImageHelper.putImage(this.parent, x, y)
4646
} else if (subencoding === 1) {
4747
// Solid color tile
48-
v = data.charCodeAt(ptr++) + (this.parent.bpp === 2 ? data.charCodeAt(ptr++) << 8 : 0)
48+
v = data.charCodeAt(ptr++) + (this.parent.bpp === 2 ? data.charCodeAt(ptr) << 8 : 0)
4949
this.parent.canvasCtx.fillStyle =
5050
'rgb(' +
5151
(this.parent.bpp === 1

0 commit comments

Comments
 (0)