Skip to content

Commit adc666a

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 795558d commit adc666a

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
@@ -246,9 +246,11 @@ function _draw(ref, resource: Resource) {
246246
.attr("cy", (d) => heights.height - heights.marginBelowAxis - heights.marginAboveAxis - radius - padding - d.y)
247247
.attr("r", radius)
248248
.attr('fill', color)
249+
// @ts-expect-error
249250
.on("mouseover", function(e, d) {
250251
/* lower opacity of non-hovered, increase radius of hovered circle */
251252
beeswarm.join(
253+
// @ts-expect-error
252254
(enter) => {}, /* eslint-disable-line */
253255
(update) => selectSnapshot(update, d)
254256
)
@@ -268,13 +270,15 @@ function _draw(ref, resource: Resource) {
268270
})
269271
.on("mouseleave", function() {
270272
beeswarm.join(
273+
// @ts-expect-error
271274
(enter) => {}, /* eslint-disable-line */
272275
(update) => resetBeeswarm(update)
273276
)
274277
/* hide the vertical line + text which appeared on mouseover */
275278
selectedVersionGroup.selectAll("*")
276279
.style("opacity", 0)
277280
})
281+
// @ts-expect-error
278282
.on("click", function(e, d) {
279283
window.open(`/${resource.name}@${d.data.version}`,'_blank'); // TEST!
280284
})
@@ -295,6 +299,7 @@ function _draw(ref, resource: Resource) {
295299
.on("mousemove", function(e) {
296300
const { datum, hoveredDateStr } = getVersion(e);
297301
beeswarm.join(
302+
// @ts-expect-error
298303
(enter) => {}, /* eslint-disable-line */
299304
(update) => selectSnapshot(update, datum)
300305
)
@@ -315,6 +320,7 @@ function _draw(ref, resource: Resource) {
315320
})
316321
.on("mouseleave", function() {
317322
beeswarm.join(
323+
// @ts-expect-error
318324
(enter) => {}, /* eslint-disable-line */
319325
(update) => resetBeeswarm(update)
320326
)

0 commit comments

Comments
 (0)