From ca81237e4ae51545643a9d26a6eae8267d67e71d Mon Sep 17 00:00:00 2001 From: Trevor McMaster Date: Fri, 30 Aug 2024 10:35:22 -0600 Subject: [PATCH] Fixed lint warnings --- guide/results-viewer-react/src/components/TestResults/index.tsx | 1 - guide/results-viewer-react/src/components/TestResults/model.ts | 2 -- guide/results-viewer-react/src/components/YamlUrls/index.tsx | 1 - 3 files changed, 4 deletions(-) diff --git a/guide/results-viewer-react/src/components/TestResults/index.tsx b/guide/results-viewer-react/src/components/TestResults/index.tsx index 0567710b..2a913ffb 100644 --- a/guide/results-viewer-react/src/components/TestResults/index.tsx +++ b/guide/results-viewer-react/src/components/TestResults/index.tsx @@ -130,7 +130,6 @@ const minMaxTime = (testResults: any) => { let startTime2 = Infinity; let endTime2 = -Infinity; - // eslint-disable-next-line @typescript-eslint/no-unused-vars for (const [_, dataPoints] of testResults) { for (const point of dataPoints) { if (point.startTime) { diff --git a/guide/results-viewer-react/src/components/TestResults/model.ts b/guide/results-viewer-react/src/components/TestResults/model.ts index c47ee7df..35528dbb 100644 --- a/guide/results-viewer-react/src/components/TestResults/model.ts +++ b/guide/results-viewer-react/src/components/TestResults/model.ts @@ -2,7 +2,6 @@ import { HDRHistogram } from "@fs/hdr-histogram-wasm"; type CheckType = string | ((x: unknown) => boolean); type Check = [string, CheckType]; -// eslint-disable-next-line @typescript-eslint/ban-types function isObject (o: unknown): o is object { return typeof o === "object" && !!o; } @@ -53,7 +52,6 @@ function isObject (o: unknown): o is object { * @returns failed check or undefined */ function propertyChecker ( - // eslint-disable-next-line @typescript-eslint/ban-types o: object, requiredChecks: Check[], unknownCheck?: CheckType, diff --git a/guide/results-viewer-react/src/components/YamlUrls/index.tsx b/guide/results-viewer-react/src/components/YamlUrls/index.tsx index d11064d6..c75be5d9 100644 --- a/guide/results-viewer-react/src/components/YamlUrls/index.tsx +++ b/guide/results-viewer-react/src/components/YamlUrls/index.tsx @@ -101,7 +101,6 @@ export function Urls ({ data: { headers, ...data }, ...props }: UrlProps) { // /** Map to keep id's unique */ const headersMap = new Map(headers.map((header) => ([header.id, header]))); - // eslint-disable-next-line @typescript-eslint/no-unused-vars const [state, _setState] = useState(defaultState); const modalRef = useRef(null); useEffectModal(modalRef);