- Never run
bun run dev,vite, or any development server commands. The user manages the dev server themselves.
- Prefer using
bunfor package management, avoid usingnpm/yarn/pnpm. - Prefer using the available
package.jsonscripts instead of running commands directly for typechecking, linting, formatting, testing, etc.
- Never create barrel files, always use named exports.
- This project uses Base UI patterns, not older Radix-style composition.
- Do not assume local wrapper components support
asChild. - Before using common shadcn or Radix idioms, check the local wrapper API first.
- Prefer the repo's existing
render={...}composition patterns when working with triggers and buttons. - Destructure props inside the component body, not in the function signature.
- use
typeinstead ofinterfacefor component props. - Don't overuse
useEffectfor simple state updates. - Don't use deprecated
forwardReffor component refs, pass therefas a prop. - This project should follow the React 19+ composition patterns.
- This project doesn't use React Server Components.