Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add-cursor-prompt #25

wants to merge 3 commits into from

Conversation

doncarlo5
Copy link

No description provided.

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.
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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).
Copy link
Contributor

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

@kemborah
Copy link
Contributor

the most important is that it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants