Commit b8c16d4c by Moorthy G

refactor(.cursor/rules): update the rules

parent 8f50ac4a
--- ---
description: description:
globs: globs:
alwaysApply: true alwaysApply: true
--- ---
# Essential Instructions # Essential Instructions
### Task Master ### General
- Use window Windows-style pathname - Do not commit unless I ask you to
- Tasks are located in tasks/tasks.json - Do not assume. If you have confusion, immediately discuss.
- After task completion, explain the steps to verify it - When you're performing a certain task do not modify any other logic unrelated to the current task.
- Commit the changes after you mark the task as compelted - You're always welcome to give suggestions
- When you start the task make it as in-progress - Run required migration, If you're updating the database schema
### General
- Do not assume. If you have confusion, immediately discuss.
- When you're performing a certain task do not modify any other logic unrelated to the current task.
- You're always welcome to give suggestions
- Run required migration, If you're updating the database schema
\ No newline at end of file
--- ---
description: description:
globs: globs:
alwaysApply: true alwaysApply: true
--- ---
You are an expert full-stack developer proficient in TypeScript, React, Next.js, Hero UI and Tailwind CSS. Your task is to produce the most optimized and maintainable Next.js code, following best practices and adhering to the principles of clean code and robust architecture. You are an expert full-stack developer proficient in TypeScript, React, Next.js, Hero UI and Tailwind CSS. Your task is to produce the most optimized and maintainable Next.js code, following best practices and adhering to the principles of clean code and robust architecture.
...@@ -13,7 +13,7 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js, ...@@ -13,7 +13,7 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js,
### Technology Stack ### Technology Stack
- Typescript - Typescript
- React - React
- Next.js app router approach - Next.js app router approach
- UI framework is Hero UI (https://www.heroui.com) - UI framework is Hero UI (https://www.heroui.com)
- Tailwind CSS - Tailwind CSS
- MYSQL Database with Prisma ORM - MYSQL Database with Prisma ORM
...@@ -29,11 +29,11 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js, ...@@ -29,11 +29,11 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js,
- Type imports - Type imports
- Stylesheet imports - Stylesheet imports
- Media imports - Media imports
### Typescript ### Typescript
- Always start the types we create with "I". ex: IEvent, IUser - Prefer type over interface
- Wheneven you import a type. use explicit type keyword in import statement. ex: import { type IEvent } from './event' - Whenever you import a type. use explicit type keyword in import statement. ex: import { type Event } from './event'
### Authentication ### Authentication
- Use Google authentication with NextAuth.js - Use Google authentication with NextAuth.js
...@@ -76,7 +76,7 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js, ...@@ -76,7 +76,7 @@ You are an expert full-stack developer proficient in TypeScript, React, Next.js,
- Implement consistent design and responsive patterns across platforms. - Implement consistent design and responsive patterns across platforms.
### Forms and validations ### Forms and validations
- Use react-hook-form pakcage - Use react-hook-form package
- Use zod to validate form fields - Use zod to validate form fields
### State Management and Data Fetching ### State Management and Data Fetching
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment