From 83e16afadb736ff1825d26867e56e37eb4b6027d Mon Sep 17 00:00:00 2001 From: John SJ Anderson Date: Fri, 7 Jun 2024 12:20:29 -0700 Subject: [PATCH] =?UTF-8?q?Spell=20out=20reason=20for=20`@ts-expert-error`?= =?UTF-8?q?=20declarations=E2=80=A6=20[#905]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …to make the linter happy. --- static-site/src/components/ListResources/Modal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static-site/src/components/ListResources/Modal.tsx b/static-site/src/components/ListResources/Modal.tsx index 0a066daae..c7831731c 100644 --- a/static-site/src/components/ListResources/Modal.tsx +++ b/static-site/src/components/ListResources/Modal.tsx @@ -247,11 +247,11 @@ function _draw(ref, resource: Resource) { .attr("cy", (d) => heights.height - heights.marginBelowAxis - heights.marginAboveAxis - radius - padding - d.y) .attr("r", radius) .attr('fill', color) - // @ts-expect-error + // @ts-expect-error no-unused-vars .on("mouseover", function(e, d) { /* lower opacity of non-hovered, increase radius of hovered circle */ beeswarm.join( - // @ts-expect-error + // @ts-expect-error no-unused-vars (enter) => {}, /* eslint-disable-line */ (update) => selectSnapshot(update, d) ) @@ -271,7 +271,7 @@ function _draw(ref, resource: Resource) { }) .on("mouseleave", function() { beeswarm.join( - // @ts-expect-error + // @ts-expect-error no-unused-vars (enter) => {}, /* eslint-disable-line */ (update) => resetBeeswarm(update) ) @@ -279,7 +279,7 @@ function _draw(ref, resource: Resource) { selectedVersionGroup.selectAll("*") .style("opacity", 0) }) - // @ts-expect-error + // @ts-expect-error no-unused-vars .on("click", function(e, d) { window.open(`/${resource.name}@${d.data.version}`,'_blank'); // TEST! }) @@ -300,7 +300,7 @@ function _draw(ref, resource: Resource) { .on("mousemove", function(e) { const { datum, hoveredDateStr } = getVersion(e); beeswarm.join( - // @ts-expect-error + // @ts-expect-error no-unused-vars (enter) => {}, /* eslint-disable-line */ (update) => selectSnapshot(update, datum) ) @@ -321,7 +321,7 @@ function _draw(ref, resource: Resource) { }) .on("mouseleave", function() { beeswarm.join( - // @ts-expect-error + // @ts-expect-error no-unused-vars (enter) => {}, /* eslint-disable-line */ (update) => resetBeeswarm(update) )