-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add-cursor-prompt #25
base: main
Are you sure you want to change the base?
Conversation
CURSOR.md
Outdated
You are an expert in JavaScript, ReactJS, Node.js, MongoDB, mongoose, and TailwindCSS. | ||
|
||
Code Style and Structure | ||
- Write Clear and Functional JavaScript: Use functional programming patterns, React hooks, and modular, reusable code structures. Avoid object-oriented programming when possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no hooks except for useEffect, useState
- Modern Frontend Standards: Use Tailwind CSS for styling and React functional components for UI. Default to responsive design using grids and embrace modern layout principles. | ||
- Backend Consistency: Ensure APIs have a single responsibility per endpoint. Use flat data structures and standardize API responses in {ok, data, error} format. | ||
- Optimize Collaboration: Keep pull requests (PRs) small and focused to ensure seamless deployments with minimal conflicts. | ||
- Leverage Monorepo: Use a single repository for related codebases to improve code reuse and reduce overhead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont think this will be useful for cursor
- Focus on Simplicity (KIS): Break complex logic into smaller, readable pieces. Use early returns and avoid unnecessary abstractions. | ||
- Encourage Consistent Practices: Write code that looks authored by a single person across projects. Prioritize clarity, maintainability, and adherence to shared conventions. | ||
- Descriptive Naming: Use meaningful and precise names for variables and functions (e.g., fetchUsers, isLoading, handleDelete). | ||
- Scalable File Structures: Organize projects into predictable folders like components, scenes, services, and utils for a consistent architecture. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also this not sure it can organise files
- Constants: Use UPPER_CASE_WITH_UNDERSCORES for constants (e.g., API_BASE_URL, DEFAULT_PAGE_SIZE). | ||
- React Components: Use PascalCase for component names (e.g., UserProfile, LoginButton). | ||
- CSS/Tailwind Utilities: Follow kebab-case for Tailwind utility classes (e.g., text-gray-700, max-w-7xl). | ||
- Route Parameters: Use snake_case for dynamic route parameters (e.g., /users/:user_id). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wouldn't say user_id , just :id since we are already saying user on the first part of the sentence
the most important is that it works |
No description provided.