zeroed-some/bashamole / e34266f

Browse files

shut up the linter

Authored by espadonne
SHA
e34266fee4c1126ddc85bf768997409c4408fbe4
Parents
4cba9cf
Tree
565ab41

1 changed file

StatusFile+-
M frontend/src/components/TreeVisualizer.tsx 6 0
frontend/src/components/TreeVisualizer.tsxmodified
@@ -338,6 +338,7 @@ const TreeVisualizer: React.FC<TreeVisualizerProps> = ({
338338
     };
339339
 
340340
     // Create quirky curved links
341
+    // eslint-disable-next-line @typescript-eslint/no-explicit-any
341342
     const linkGenerator = d3.linkVertical<any, any>()
342343
       .x(d => d.x)
343344
       .y(d => d.y)
@@ -493,16 +494,19 @@ const TreeVisualizer: React.FC<TreeVisualizerProps> = ({
493494
 
494495
     // Add interactivity
495496
     node.selectAll('.node-shape')
497
+      // eslint-disable-next-line @typescript-eslint/no-explicit-any
496498
       .style('cursor', function(this: any) {
497499
         const d = d3.select(this.parentNode).datum() as d3.HierarchyPointNode<TreeNode>;
498500
         if (d.data.path === playerLocation) return 'default';
499501
         return isAdjacentNode(d.data.path, playerLocation) ? 'pointer' : 'not-allowed';
500502
       })
503
+      // eslint-disable-next-line @typescript-eslint/no-explicit-any
501504
       .style('opacity', function(this: any) {
502505
         const d = d3.select(this.parentNode).datum() as d3.HierarchyPointNode<TreeNode>;
503506
         if (d.data.path === playerLocation) return 1;
504507
         return isAdjacentNode(d.data.path, playerLocation) ? 1 : 0.5;
505508
       })
509
+      // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
506510
       .on('mouseover', function(this: any, event: MouseEvent) {
507511
         const d = d3.select(this.parentNode).datum() as d3.HierarchyPointNode<TreeNode>;
508512
         if (d.data.path !== playerLocation && isAdjacentNode(d.data.path, playerLocation)) {
@@ -516,6 +520,7 @@ const TreeVisualizer: React.FC<TreeVisualizerProps> = ({
516520
             .style('filter', 'url(#glow) drop-shadow(0 0 8px rgba(0,0,0,0.4))');
517521
         }
518522
       })
523
+      // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
519524
       .on('mouseout', function(this: any, event: MouseEvent) {
520525
         const d = d3.select(this.parentNode).datum() as d3.HierarchyPointNode<TreeNode>;
521526
         d3.select(this)
@@ -529,6 +534,7 @@ const TreeVisualizer: React.FC<TreeVisualizerProps> = ({
529534
           })
530535
           .style('filter', d.data.path === playerLocation ? 'url(#glow)' : 'url(#drop-shadow)');
531536
       })
537
+      // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
532538
       .on('click', function(this: any, event: MouseEvent) {
533539
         const d = d3.select(this.parentNode).datum() as d3.HierarchyPointNode<TreeNode>;
534540
         if (onNodeClick && d.data.path !== playerLocation && isAdjacentNode(d.data.path, playerLocation)) {