1.4 KiB
1.4 KiB
Agents Guide for stats-hypixel
Build Commands
bun run dev- Start development server with turbopackbun run build- Build for productionbun run typecheck- Type check with TypeScriptbun run lint- Lint codebase with ESLintbun run lint:fix- Auto-fix ESLint issuesbun run fmt- Format code with dprint
Code Style
- Formatting: Use dprint with 4-space indentation, no semicolons (ASI), double quotes, line width 150
- Imports: Use
@/for src imports, group by external libs → internal libs → relative imports - TypeScript: Strict mode enabled, use proper type annotations, prefer
typeoverinterface - Components: Use React 19 patterns, prefer function components with props destructuring
- Styling: TailwindCSS with
cn()utility from@/lib/utils, use class-variance-authority for variants - File naming: kebab-case for files, PascalCase for components, camelCase for functions
- Environment: Use
@t3-oss/env-nextjswith Zod validation for env vars
Key Patterns
- UI components use Radix UI primitives with custom styling
- Error handling with proper TypeScript error types
- No test framework detected - verify manually or ask user for test commands
Don'ts
- Do not ever commit code without being asked to
- Do not run extra dev servers or builds without asking me, you can run a typecheck eslint and fmt
- In case of any type errors with nextjs run typegen