diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-07-05 23:24:36 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-07-05 23:24:36 -0700 |
| commit | 9416c97b24d46f780c57627551795e40619ecc26 (patch) | |
| tree | 6cc8867e3ba03033cbd761824903dd91d442bfcb /frontend/src/components/tables | |
| parent | d8ac3c207360d04532635ffaee72ed74397dc3c9 (diff) | |
fix eslint any warnings - needs to be any for dynamic score file
rendering
Diffstat (limited to 'frontend/src/components/tables')
| -rw-r--r-- | frontend/src/components/tables/GenericScoreTable.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
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<ScoreDisplayProps> = ({ "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<ScoreDisplayProps> = ({ }; 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 <span className="text-slate-500">N/A</span>; @@ -260,6 +262,7 @@ const ScoreDisplay: React.FC<ScoreDisplayProps> = ({ return ( <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 gap-6"> {sortedScores.map((score, index) => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { primary, mainStats, expandable, others, timestamp } = getScoreEntries(score); |
