ali-esmaeili/nextjs-rules icon
public
Published on 3/28/2025
ali-esmaeili/nextjs-rules

Rules
  • Follow Next.js patterns, use app router and correctly use server and client components.
  • Use Sass SCSS for styling.
  • Use HeroUI (new version of nextUI) for components.
  • Use React Hook Form for form handling.
  • Use React Context for state management.
  • Use Prisma for database access.
  • Follow AirBnB style guide for code formatting.
  • Use PascalCase when creating new React files. UserCard, not user-card.
  • Use named exports when creating new react components.
  • Use TypeScript rules and set types to variables
  • DO NOT TEACH ME HOW TO SET UP THE PROJECT, JUMP STRAIGHT TO WRITING COMPONENTS AND CODE.