Skip to content

Commit

Permalink
Fix ESLint Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Feb 4, 2022
1 parent 0735e4f commit e4090c8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SystemCircle: React.FC<
canvas.height = size;
canvas.width = size;

var ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
return ctx;
}, []);

Expand Down
1 change: 0 additions & 1 deletion client/src/components/Starmap/SystemMarker/SystemLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
// @ts-ignore
import TextTexture from "@seregpie/three.text-texture";
import {AdditiveBlending, Sprite} from "three";
import {useFrame} from "@react-three/fiber";
Expand Down
5 changes: 2 additions & 3 deletions client/src/context/useNetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
useState,
} from "react";
import {
AllRequests,
AllRequestNames,
AllRequestParams,
AllRequestReturns,
Expand Down Expand Up @@ -153,15 +152,15 @@ export function useNetRequest<
return () => {
socket.off("ready", handleReady);
};
}, [socket, requestId, data]);
}, [socket, requestId, data, mockData]);

useEffect(() => {
if (mockData) return;
setUpRequest(hookId);
return () => {
takeDownRequest(hookId);
};
}, [setUpRequest, takeDownRequest, ready, hookId, requestId]);
}, [setUpRequest, takeDownRequest, ready, hookId, requestId, mockData]);

const callbackRef = useRef(callback);
useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/Config/Starmap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function useSynchronizeSystemId() {
navigate(`/config/${pluginId}/starmap`);
useStarmapStore.setState({systemId: null});
}
}, [storedSystemId]);
}, [storedSystemId, navigate, pluginId]);
useEffect(() => {
mounted.current = true;
}, []);
Expand Down Expand Up @@ -237,7 +237,7 @@ function SolarSystemMap() {
);
}

const StarmapScene = forwardRef((props, ref) => {
const StarmapScene = forwardRef(function StarmapScene(props, ref) {
const pluginId = useStarmapStore(s => s.pluginId);
const systemId = useStarmapStore(s => s.systemId);

Expand Down
4 changes: 3 additions & 1 deletion server/src/spawners/systemNames.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// System names from Endless Sky and Ur Quan Masters
export default [
const SystemNames = [
"Ablodab",
"Ablub",
"Acamar",
Expand Down Expand Up @@ -859,3 +859,5 @@ export default [
"Beeblebrox",
"Mendon",
];

export default SystemNames;

0 comments on commit e4090c8

Please sign in to comment.