From 9416c97b24d46f780c57627551795e40619ecc26 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 5 Jul 2025 23:24:36 -0700 Subject: fix eslint any warnings - needs to be any for dynamic score file rendering --- frontend/src/components/tables/GenericScoreTable.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/tables/GenericScoreTable.tsx b/frontend/src/components/tables/GenericScoreTable.tsx index f82e1ff..3358f8d 100644 --- a/frontend/src/components/tables/GenericScoreTable.tsx +++ b/frontend/src/components/tables/GenericScoreTable.tsx @@ -1,6 +1,7 @@ import React from "react"; interface Score { + // eslint-disable-next-line @typescript-eslint/no-explicit-any [key: string]: any; timestamp: string | number; } @@ -70,7 +71,7 @@ const ScoreDisplay: React.FC = ({ "grade", ]; const expandableKeys = ["judgements", "optional"]; - + // eslint-disable-next-line @typescript-eslint/no-explicit-any const formatValue = (value: any, key: string): string => { if (value === null || value === undefined) return "N/A"; @@ -102,10 +103,11 @@ const ScoreDisplay: React.FC = ({ }; const renderValue = ( + // eslint-disable-next-line @typescript-eslint/no-explicit-any value: any, key: string, compact: boolean = false, - ): JSX.Element => { + ): React.ReactElement => { if (value === null || value === undefined) return N/A; @@ -260,6 +262,7 @@ const ScoreDisplay: React.FC = ({ return (
{sortedScores.map((score, index) => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { primary, mainStats, expandable, others, timestamp } = getScoreEntries(score); -- cgit v1.2.3