Skip to content

Commit c6c6d78

Browse files
authored
[js] Upgrade ESLint from v8 to v9 for subfolder /js/ (#26419)
### Description [js] Upgrade ESLint from v8 to v9 for subfolder /js/ ### Motivation and Context
1 parent 1633299 commit c6c6d78

33 files changed

+4335
-2633
lines changed

js/.eslintrc.js

Lines changed: 0 additions & 266 deletions
This file was deleted.

js/common/lib/tensor-conversion-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const tensorToDataURL = (tensor: Tensor, options?: TensorToDataUrlOptions
8888
const G = ((tensor.data[gTensorPointer++] as number) - normBias[1]) * normMean[1]; // G value
8989
const B = ((tensor.data[bTensorPointer++] as number) - normBias[2]) * normMean[2]; // B value
9090
const A = aTensorPointer === -1 ? 255 : ((tensor.data[aTensorPointer++] as number) - normBias[3]) * normMean[3]; // A value
91-
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
91+
9292
pixels2DContext.fillStyle = 'rgba(' + R + ',' + G + ',' + B + ',' + A + ')';
9393
pixels2DContext.fillRect(j, i, 1, 1);
9494
}

0 commit comments

Comments
 (0)