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 rules for better suggestions #5451

Merged
merged 1 commit into from
Nov 10, 2024
Merged

Add Cursor rules for better suggestions #5451

merged 1 commit into from
Nov 10, 2024

Conversation

bigint
Copy link
Member

@bigint bigint commented Nov 10, 2024

This pull request introduces extensive guidelines and best practices for coding, error handling, state management, and monorepo management. These changes aim to standardize the development process, improve code readability, and ensure robust error handling.

Coding Guidelines and Best Practices:

  • General Coding Practices: Emphasizes writing correct, DRY, bug-free, and fully functional code. Encourages the use of early returns, descriptive naming, and accessibility features.
  • React and Styling: Specifies the use of export default at the end of React files, TailwindCSS for styling, and arrow functions for event handlers.

Monorepo Management:

  • Monorepo Best Practices: Recommends using pnpm workspaces, ensuring proper package isolation, shared configurations, and scripts.

Error Handling and Validation:

  • Error Handling: Prioritizes handling errors and edge cases early in functions, using guard clauses, and providing user-friendly error messages.

State Management and Data Fetching:

  • State and Data Management: Advocates for using Zustand for state management, TanStack React Query for data fetching, and minimizing the use of useEffect and setState.

TypeScript and Code Style:

  • TypeScript and Zod: Encourages

Copy link

vercel bot commented Nov 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web ✅ Ready (Inspect) Visit Preview Nov 10, 2024 4:43am

Copy link
Contributor

Cat Gif

@bigint bigint requested a review from Copilot November 10, 2024 04:38

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • .cursorrules: Language not supported
@bigint bigint merged commit 65378c0 into main Nov 10, 2024
11 of 12 checks passed
@bigint bigint deleted the add-cr branch November 10, 2024 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant