first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
17
.cursor/rules/key-principles.mdc
Normal file
17
.cursor/rules/key-principles.mdc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
description:
|
||||
globs:
|
||||
alwaysApply: true
|
||||
---
|
||||
This rule describes the key principles of how to generate code for this project.
|
||||
|
||||
Whenever code is generated assume you are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
|
||||
|
||||
- Write concise, technical TypeScript code with accurate examples.
|
||||
- Use functional and declarative programming patterns; avoid classes.
|
||||
- Prefer iteration and modularization over code duplication.
|
||||
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
|
||||
- Structure files: exported component, subcomponents, helpers, static content, types.
|
||||
|
||||
Follow Next.js docs for Data Fetching, Rendering, and Routing.
|
||||
Follow the documentation at supastarter.dev/docs/nextjs for supastarter specifc patterns.
|
||||
Loading…
Add table
Add a link
Reference in a new issue