Skip to content

Commit ea689a4

Browse files
committed
chore: bump ESLint to latest version and fix new issues
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 591b0a2 commit ea689a4

14 files changed

Lines changed: 110 additions & 245 deletions

File tree

File renamed without changes.

package-lock.json

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

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@
3737
"update-major": "run-p update-major-workspaces update-major-root"
3838
},
3939
"devDependencies": {
40+
"@eslint/js": "10.0.1",
4041
"@types/esbuild-copy-static-files": "0.1.4",
4142
"@typescript-eslint/parser": "8.58.1",
4243
"@vitest/browser": "3.2.4",
4344
"@vitest/coverage-v8": "3.2.4",
4445
"cross-env": "10.1.0",
4546
"esbuild": "0.28.0",
46-
"eslint": "9.39.4",
47+
"eslint": "10.2.0",
4748
"eslint-plugin-react-hooks": "7.0.1",
49+
"globals": "17.4.0",
50+
"jiti": "2.6.1",
4851
"lerna": "9.0.7",
4952
"npm-run-all": "4.1.5",
5053
"playwright": "1.59.1",
@@ -64,6 +67,9 @@
6467
"minimatch": "10.2.3"
6568
},
6669
"esbuild": "$esbuild",
70+
"eslint-plugin-react-hooks": {
71+
"eslint": "$eslint"
72+
},
6773
"tar": "7.5.11",
6874
"tmp": "0.2.5",
6975
"typescript": "$typescript",

packages/common/src/Database.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ export class Grid extends PropertyExt {
393393

394394
// Hipie Helpers ---
395395

396-
hipieMappings(columns, missingDataString) {
397-
missingDataString = missingDataString || "";
396+
hipieMappings(columns, _missingDataString?) {
398397
if (!this.fields().length || !this._data.length) {
399398
return [];
400399
}

packages/common/src/Platform.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,20 @@ export function getScrollbarWidth() {
7676
};
7777

7878
this.observe = function (domNode, config) {
79-
let listener = null;
8079
if (config.attributes) {
81-
listener = new MutationListener(this.callback, domNode, "attributes");
80+
const listener = new MutationListener(this.callback, domNode, "attributes");
8281
this.listeners.push(listener);
8382
domNode.addEventListener("DOMAttrModified", listener, true);
8483
}
8584

8685
if (config.characterData) {
87-
listener = new MutationListener(this.callback, domNode, "characterData");
86+
const listener = new MutationListener(this.callback, domNode, "characterData");
8887
this.listeners.push(listener);
8988
domNode.addEventListener("DOMCharacterDataModified", listener, true);
9089
}
9190

9291
if (config.childList) {
93-
listener = new MutationListener(this.callback, domNode, "childList");
92+
const listener = new MutationListener(this.callback, domNode, "childList");
9493
this.listeners.push(listener);
9594
domNode.addEventListener("DOMNodeInserted", listener, true);
9695
domNode.addEventListener("DOMNodeRemoved", listener, true);

packages/common/src/Utility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ export function timestamp() {
601601
export function downloadString(format: "CSV" | "TSV" | "JSON" | "TEXT" | "SVG", blob: string, id?: string) {
602602
const filename = id || ("data_" + timestamp()) + "." + format.toLowerCase();
603603

604-
let mimeType = "";
604+
let mimeType: string;
605605
switch (format) {
606606
case "TSV":
607607
mimeType = "text/tab-seperated-values";

packages/comms/src/ecl/scope.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ export class BaseScope extends StateObject<ScopeEx, ScopeEx> implements ScopeEx
152152
}
153153

154154
calcTooltip(parentScope?: BaseScope) {
155-
let label = "";
155+
let label = this.Id;
156156
const rows: string[] = [];
157-
label = this.Id;
158157
rows.push(`<tr><td class="key">ID:</td><td class="value">${this.Id}</td></tr>`);
159158
if (parentScope) {
160159
rows.push(`<tr><td class="key">Parent ID:</td><td class="value">${parentScope.Id}</td></tr>`);

packages/composite/src/MegaChart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class MegaChart extends Border {
133133
;
134134
this._maximizeButton.click = function (buttonWidget) {
135135
const target = context.target() as any;
136-
let node = target;
136+
let node;
137137
const isMaximized = d3Select(target).classed("__hpccisMaximized");
138138

139139
// Find the layout_Grid ancestor

packages/graph/src/common/layouts/dagre.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ export class Dagre extends Layout {
113113
if (ep.points) {
114114
const line = this.edgeLine(ep);
115115
points = ep.points.map((p, idx) => {
116-
let x = NaN;
117-
let y = NaN;
116+
let x: number;
117+
let y: number;
118118
if (idx === 0) {
119119
x = this._graph.rproject(line.source.x);
120120
y = this._graph.rproject(line.source.y);

packages/graph/src/common/layouts/graphviz.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export class Graphviz extends Layout {
104104
if (ep.points) {
105105
const line = this.edgeLine(ep);
106106
points = ep.points.map((p, idx) => {
107-
let x = NaN;
108-
let y = NaN;
107+
let x: number;
108+
let y: number;
109109
if (idx === 0) {
110110
x = this._graph.rproject(line.source.x);
111111
y = this._graph.rproject(line.source.y);

0 commit comments

Comments
 (0)