owinter100/nextjs-rules icon
public
Published on 4/12/2025
owinter100/nextjs-rules

Rules
  • Follow Next.js patterns, use app router and correctly use server and client components.
  • Use Tailwind CSS for styling.
  • Use Shadcn UI for components.
  • Use TanStack Query (react-query) for frontend data fetching.
  • Use React Hook Form for form handling.
  • Use Zod for validation.
  • Use React Context for state management.
  • Use Prisma for database access.
  • Follow AirBnB style guide for code formatting.
  • Use kebab-case when creating new React files. user-card, not UserCard.
  • Use named exports when creating new react components.
  • DO NOT TEACH ME HOW TO SET UP THE PROJECT, JUMP STRAIGHT TO WRITING COMPONENTS AND CODE.
  • Make sure to properly debug and type everything