Skip to content

Commit 7c750e2

Browse files
committed
Add individual exceptions for unused vars
The alternative of turning off noUnusedLocals is not desirable since we still want to catch unused imports which is done by the same rule. This is the same reason why no-unused-vars is enabled in ESLint with exceptions in the lines below each change.
1 parent 54be4d6 commit 7c750e2

File tree

1 file changed

+6
-0
lines changed
  • static-site/src/components/ListResources

1 file changed

+6
-0
lines changed

static-site/src/components/ListResources/Modal.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,11 @@ function _draw(ref, resource: Resource) {
247247
.attr("cy", (d) => heights.height - heights.marginBelowAxis - heights.marginAboveAxis - radius - padding - d.y)
248248
.attr("r", radius)
249249
.attr('fill', color)
250+
// @ts-expect-error
250251
.on("mouseover", function(e, d) {
251252
/* lower opacity of non-hovered, increase radius of hovered circle */
252253
beeswarm.join(
254+
// @ts-expect-error
253255
(enter) => {}, /* eslint-disable-line */
254256
(update) => selectSnapshot(update, d)
255257
)
@@ -269,13 +271,15 @@ function _draw(ref, resource: Resource) {
269271
})
270272
.on("mouseleave", function() {
271273
beeswarm.join(
274+
// @ts-expect-error
272275
(enter) => {}, /* eslint-disable-line */
273276
(update) => resetBeeswarm(update)
274277
)
275278
/* hide the vertical line + text which appeared on mouseover */
276279
selectedVersionGroup.selectAll("*")
277280
.style("opacity", 0)
278281
})
282+
// @ts-expect-error
279283
.on("click", function(e, d) {
280284
window.open(`/${resource.name}@${d.data.version}`,'_blank'); // TEST!
281285
})
@@ -296,6 +300,7 @@ function _draw(ref, resource: Resource) {
296300
.on("mousemove", function(e) {
297301
const { datum, hoveredDateStr } = getVersion(e);
298302
beeswarm.join(
303+
// @ts-expect-error
299304
(enter) => {}, /* eslint-disable-line */
300305
(update) => selectSnapshot(update, datum)
301306
)
@@ -316,6 +321,7 @@ function _draw(ref, resource: Resource) {
316321
})
317322
.on("mouseleave", function() {
318323
beeswarm.join(
324+
// @ts-expect-error
319325
(enter) => {}, /* eslint-disable-line */
320326
(update) => resetBeeswarm(update)
321327
)

0 commit comments

Comments
 (0)