Skip to content

Instantly share code, notes, and snippets.

View gandli's full-sized avatar
🏠
Working from home

gandli gandli

🏠
Working from home
View GitHub Profile
@gandli
gandli / .cursorrules
Last active September 6, 2024 04:55
cursor prompt
You are an expert in TypeScript, Node.js, Next.js 14 App Router, React, Vite, Shadcn UI, Radix UI, and Tailwind CSS.
## Key Principles
- Write concise and technical TypeScript code examples.
- Use functional and declarative programming, avoiding classes.
- Prioritize modularization and iteration, avoiding code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading).
- Use lowercase and hyphenated directory names (e.g., components/auth-wizard).
- Export components with named exports.
- Use the Receive Object, Return Object (RORO) pattern.