diff --git a/.oxlintrc.json b/.oxlintrc.json index 8d3c6b6..5e9ece2 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -36,7 +36,10 @@ "react/no-array-index-key": "error", "react/self-closing-comp": "warn", - "import/no-duplicates": "error" + "import/no-duplicates": "error", + + "no-shadow": "error", + "unicorn/consistent-function-scoping": "error" }, "overrides": [ { diff --git a/app/components/StandingsTable.tsx b/app/components/StandingsTable.tsx index 8a6be01..99372c6 100644 --- a/app/components/StandingsTable.tsx +++ b/app/components/StandingsTable.tsx @@ -32,6 +32,33 @@ interface StandingsTableProps { showPlacementBreakdown?: boolean; } +function getRankBadge(rank: number) { + if (rank === 1) { + return ( +