Skip to content

Commit

Permalink
Cleaned up some linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Jun 18, 2024
1 parent 8d62549 commit 9572ceb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fission/src/Synthesis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { LoadMirabufRemote } from "./mirabuf/MirabufLoader.ts"
import { mirabuf } from "./proto/mirabuf"
import MirabufParser, { ParseErrorSeverity } from "./mirabuf/MirabufParser.ts"
import MirabufInstance from "./mirabuf/MirabufInstance.ts"
import { AnimatePresence, motion } from "framer-motion"
import { AnimatePresence } from "framer-motion"
import { ReactElement, useEffect } from "react"
import { ModalControlProvider, useModalManager } from "./ModalContext"
import { PanelControlProvider, usePanelManager } from "./PanelContext"
Expand Down
1 change: 1 addition & 0 deletions fission/src/components/NumberInput.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import React from "react"
import Label, { LabelSize } from "./Label"
import {
Expand Down
2 changes: 1 addition & 1 deletion fission/src/mirabuf/MirabufParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class MirabufParser {
}

// 1: Initial Rigidgroups from ancestorial breaks in joints
;(Object.keys(assembly.data!.joints!.jointInstances!) as string[]).forEach(key => {
(Object.keys(assembly.data!.joints!.jointInstances!) as string[]).forEach(key => {
if (key != GROUNDED_JOINT_ID) {
const jInst = assembly.data!.joints!.jointInstances![key]
const [ancestorA, ancestorB] = this.FindAncestorialBreak(jInst.parentPart!, jInst.childPart!)
Expand Down
6 changes: 3 additions & 3 deletions fission/src/modals/mirabuf/ImportMirabufModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const ImportMirabufModal: React.FC<ModalPropsImpl> = ({ modalId }) => {

const [hubs, setHubs] = useState<Hub[] | undefined>(undefined)
useEffect(() => {
;(async () => {
(async () => {
setHubs(await getHubs())
})()
}, [])

const [projects, setProjects] = useState<Project[] | undefined>(undefined)
useEffect(() => {
;(async () => {
(async () => {
if (selectedHub) {
setProjects(await getProjects(selectedHub))
}
Expand All @@ -50,7 +50,7 @@ const ImportMirabufModal: React.FC<ModalPropsImpl> = ({ modalId }) => {

const [folderData, setFolderData] = useState<Data[] | undefined>(undefined)
useEffect(() => {
;(async () => {
(async () => {
if (selectedProject) {
console.log("Project has been selected")
if (selectedFolder) {
Expand Down
4 changes: 2 additions & 2 deletions fission/src/modals/spawning/SpawningModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const AddRobotsModal: React.FC<ModalPropsImpl> = ({ modalId }) => {
const [remoteRobots, setRemoteRobots] = useState<MirabufEntry[] | null>(null)

useEffect(() => {
;(async () => {
(async () => {
fetch("/api/mira/manifest.json")
.then(x => x.json())
.then(x => {
Expand Down Expand Up @@ -96,7 +96,7 @@ export const AddFieldsModal: React.FC<ModalPropsImpl> = ({ modalId }) => {
const [remoteFields, setRemoteFields] = useState<MirabufEntry[] | null>(null)

useEffect(() => {
;(async () => {
(async () => {
fetch("/api/mira/manifest.json")
.then(x => x.json())
.then(x => {
Expand Down
2 changes: 1 addition & 1 deletion fission/src/util/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const mousePosition = (x: number, y: number) => {
}

export const addGlobalFunc = <T>(name: string, func: (...args: any[]) => T) => {
;(window as any)[name] = func
(window as any)[name] = func
}

addGlobalFunc("click", click)
Expand Down

0 comments on commit 9572ceb

Please sign in to comment.