These are the coding guidelines for this project. All AI coding agents should follow these rules.
- Keep code as simple and minimal as possible
- Avoid adding comments for describing obvious behavior, focus comments on "why"
- Ask yourself "Is there a better way to do this?"
- Fix problems at the root cause, not with bandaids. If a function has a side effect that makes it hard to use correctly, refactor the function rather than working around it with fake data or wrapper hacks.
We're using the latest versions of:
- TypeScript
- Next.js app router (16+)
- React (19.2+)
- Tailwind CSS (v4+)
- Shadcn UI components
- Import local TypeScript files using
@/syntax - Import types using the
typekeyword - Use normal static imports instead of
await import() - Avoid using the
anytype in TypeScript - Minimize casting in TypeScript
- Prefer TypeScript objects and arrays over Maps and Sets
- Prefer single quotes over double quotes for TypeScript strings
- Import Lucide icons with the Icon suffix
- Minimize
useEffectif there is a better alternative - Don't use
forwardRef, you can passrefprops in React 19+
- When installing Shadcn components use the
npx shadcn@latest add [component]command