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

Update next.ts #116

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

Update next.ts #116

wants to merge 5 commits into from

Conversation

palaklive
Copy link

Description: Add Coding Standards and Best Practices for Cursor AI in Next.js

This PR introduces comprehensive guidelines and best practices for the development of Cursor AI using Next.js, covering a wide array of development, design, and performance areas. These guidelines aim to ensure consistency, maintainability, and optimized performance across all Cursor AI projects.

Key Additions:

  • Development Philosophy: Core principles to guide consistent and scalable development practices.
  • Code Implementation: Detailed standards for code structure, modularization, and organization.
  • Code Style: Enforced style guidelines to promote readability and uniformity.
  • Naming Conventions: Standard naming patterns, including specific rules for functions, variables, and components.
  • React Best Practices: Recommendations for React component organization, hooks, and optimization techniques.
  • React Performance Optimization: Tips to minimize re-renders and improve component performance.
  • Next.js Best Practices: Best practices specific to Next.js, covering routing, API routes, and server/client components.
  • Component and Feature Design: Guidance for building modular and reusable UI components and features.
  • Server Components: Standards for server-rendered components, including data fetching and caching practices.
  • TypeScript Implementation: TypeScript configuration and usage guidelines for type safety and maintainability.
  • UI and Styling: Rules for component libraries, Tailwind CSS usage, and responsive design.
  • State Management: Recommended practices for using Redux Toolkit and state management in Next.js.
  • Error Handling and Boundaries: Structured error management, including error boundaries and fallback UI.
  • Testing: Unit and integration testing strategies with Jest and React Testing Library.
  • Accessibility (a11y): Accessibility standards for keyboard navigation, ARIA usage, and color contrast.
  • Security: Basic security practices, including data sanitization and component-level security considerations.
  • Internationalization (i18n): Guidelines for multi-language support and locale handling.
  • Documentation: Documentation standards to ensure clarity for new and existing codebases.

This PR aims to establish a solid foundation of coding practices for the Cursor AI project, providing clear and actionable rules for each development area to improve code quality, accessibility, and performance.

Copy link

vercel bot commented Nov 4, 2024

@palaklive is attempting to deploy a commit to the Pontus Abrahamsson's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant