From d39d7707bb58c340e3bb86360445a860cd7961e3 Mon Sep 17 00:00:00 2001 From: Bryan Lopez Date: Wed, 13 Mar 2024 19:39:04 -0400 Subject: [PATCH] cleaning up code for lintter to pass --- controller/components/PewPewVersions/index.tsx | 4 ++-- controller/components/PewPewVersions/initialProps.ts | 2 +- controller/pages/api/util/pewpew.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controller/components/PewPewVersions/index.tsx b/controller/components/PewPewVersions/index.tsx index 784d776a..641628cf 100644 --- a/controller/components/PewPewVersions/index.tsx +++ b/controller/components/PewPewVersions/index.tsx @@ -1,7 +1,7 @@ import { Danger } from "../Alert"; import Div from "../Div"; import React from "react"; -import Toaster from "../Toaster" +import Toaster from "../Toaster"; import styled from "styled-components"; const VersionDiv = styled(Div)` @@ -25,7 +25,7 @@ const VersionDivSelect = styled(Div)` export interface VersionInitalProps { pewpewVersion: string; pewpewVersions: string[]; - latestInFile: string; + latestInFile: string; loading: boolean; error: boolean; } diff --git a/controller/components/PewPewVersions/initialProps.ts b/controller/components/PewPewVersions/initialProps.ts index 731a2fdc..ae62aaef 100644 --- a/controller/components/PewPewVersions/initialProps.ts +++ b/controller/components/PewPewVersions/initialProps.ts @@ -1,7 +1,7 @@ import { LogLevel, log } from "@fs/ppaas-common"; +import { getPewPewVersionInFile, getPewPewVersionsInS3 } from "../../pages/api/util/pewpew"; import { API_PEWPEW } from "../../types"; import { VersionInitalProps } from "."; -import { getPewPewVersionInFile, getPewPewVersionsInS3 } from "../../pages/api/util/pewpew"; import { latestPewPewVersion } from "../../pages/api/util/clientutil"; export const getServerSideProps = async (): Promise => { diff --git a/controller/pages/api/util/pewpew.ts b/controller/pages/api/util/pewpew.ts index 47b308af..335f5e47 100644 --- a/controller/pages/api/util/pewpew.ts +++ b/controller/pages/api/util/pewpew.ts @@ -22,8 +22,8 @@ import { latestPewPewVersion, versionSort } from "./clientutil"; import { TestScheduler } from "./testscheduler"; import { execFile as _execFile } from "child_process"; import { chmod } from "fs/promises"; -import fs from "fs" -import { latestPewPewInFile } from "../../../.latestpewpewversionfile" +import fs from "fs"; +import { latestPewPewInFile } from "../../../.latestpewpewversionfile"; import os from "os"; import { promisify } from "util"; import semver from "semver";