Lint fixes

This commit is contained in:
Daniel Pupius
2025-04-29 13:26:23 -07:00
parent 44dc97c529
commit 38d5a8da79
5 changed files with 32 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"dependencies": {
"@eslint/js": "^9.25.1"
}
}
+23
View File
@@ -0,0 +1,23 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
'@eslint/js':
specifier: ^9.25.1
version: 9.25.1
packages:
'@eslint/js@9.25.1':
resolution: {integrity: sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
snapshots:
'@eslint/js@9.25.1': {}
@@ -79,7 +79,6 @@ export const GatewayList: React.FC = () => {
messageCount: gateway.messageCount,
textMessageCount: gateway.textMessageCount
}}
gatewayId={gateway.gatewayId}
observedNodes={gateway.observedNodes}
onClick={handleNodeClick}
isRecent={isRecent}
+1 -3
View File
@@ -4,8 +4,6 @@ import { useAppSelector } from "../../hooks";
import { useNavigate } from "@tanstack/react-router";
import { NodeData, GatewayData } from "../../store/slices/aggregatorSlice";
import { Position } from "../../lib/types";
import { Button } from "../ui/Button";
import { Locate } from "lucide-react";
interface NetworkMapProps {
/** Height of the map in CSS units */
@@ -367,7 +365,7 @@ export const NetworkMap = React.forwardRef<{ resetAutoZoom: () => void }, Networ
`${node.isGateway ? 'Gateway' : 'Node'} ${node.id.toString(16)}`;
const secondsAgo = node.lastHeard ? Math.floor(Date.now() / 1000) - node.lastHeard : 0;
let lastSeenText = formatLastSeen(secondsAgo);
const lastSeenText = formatLastSeen(secondsAgo);
const infoContent = `
<div style="font-family: sans-serif; max-width: 240px; color: #181818;">
+3 -3
View File
@@ -9,7 +9,7 @@ declare namespace google {
setZoom(zoom: number): void;
getZoom(): number | undefined;
fitBounds(bounds: LatLngBounds): void;
addListener(event: string, handler: Function): MapsEventListener;
addListener(event: string, handler: () => void): MapsEventListener;
}
class Marker {
@@ -17,7 +17,7 @@ declare namespace google {
setMap(map: Map | null): void;
setPosition(position: LatLngLiteral): void;
setIcon(icon: any): void;
addListener(event: string, handler: Function): MapsEventListener;
addListener(event: string, handler: () => void): MapsEventListener;
}
class Circle {
@@ -87,7 +87,7 @@ declare namespace google {
/**
* Removes all listeners for all events for the given instance.
*/
clearInstanceListeners(instance: Object): void;
clearInstanceListeners(instance: object): void;
};
// Maps Event Listener