- Install oxlint, add .oxlintrc.json with rules for TypeScript/React - Add npm run lint / lint:fix scripts - Add Claude PostToolUse hook to run oxlint on every edited file - Fix 101 errors: unused vars/imports, eqeqeq, prefer-const, no-new-array - Fix no-array-index-key (use stable keys or suppress positional cases) - Fix exhaustive-deps missing dependency in useEffect - Promote exhaustive-deps and no-array-index-key to errors - Fix Map.get() !== null bug in $leagueId.server.ts (should be !== undefined) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
560 B
TypeScript
26 lines
560 B
TypeScript
import { sentryOnBuildEnd } from "@sentry/react-router";
|
|
import type { Config } from "@react-router/dev/config";
|
|
|
|
export default {
|
|
// Config options...
|
|
// Server-side render by default, to enable SPA mode set this to `false`
|
|
ssr: true,
|
|
|
|
future: {
|
|
v8_middleware: true,
|
|
},
|
|
|
|
buildEnd: async (
|
|
{
|
|
viteConfig,
|
|
reactRouterConfig,
|
|
buildManifest
|
|
}
|
|
) => {
|
|
await sentryOnBuildEnd({
|
|
viteConfig: viteConfig,
|
|
reactRouterConfig: reactRouterConfig,
|
|
buildManifest: buildManifest
|
|
});
|
|
}
|
|
} satisfies Config;
|