diff --git a/.claude/settings.json b/.claude/settings.json index ca25008..42e4124 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -10,6 +10,16 @@ } ] } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "npm run typecheck 2>&1" + } + ] + } ] } } diff --git a/.oxlintrc.json b/.oxlintrc.json index 8d3c6b6..4417162 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -23,7 +23,7 @@ { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" } ], "typescript/no-explicit-any": "error", - "typescript/no-non-null-assertion": "warn", + "typescript/no-non-null-assertion": "error", "typescript/consistent-type-imports": [ "error", { "prefer": "type-imports" } @@ -36,7 +36,15 @@ "react/no-array-index-key": "error", "react/self-closing-comp": "warn", - "import/no-duplicates": "error" + "import/no-duplicates": "error", + "import/no-unassigned-import": ["error", { + "allow": ["**/*.css", "@testing-library/jest-dom", "@testing-library/cypress/add-commands"] + }], + + "no-shadow": "error", + "unicorn/consistent-function-scoping": "error", + "unicorn/prefer-add-event-listener": "error", + "unicorn/require-module-specifiers": "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 ( +