Skip to content

Commit

Permalink
Spell out reason for @ts-expert-error declarations… [#905]
Browse files Browse the repository at this point in the history
…to make the linter happy.
  • Loading branch information
genehack committed Jun 7, 2024
1 parent 5cf4235 commit 83e16af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions static-site/src/components/ListResources/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand All @@ -271,15 +271,15 @@ 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)
)
/* hide the vertical line + text which appeared on mouseover */
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!
})
Expand All @@ -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)
)
Expand All @@ -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)
)
Expand Down

0 comments on commit 83e16af

Please sign in to comment.