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

feat: Add framework-specific cursor rules for Next.js, React, TypeScr… #56

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

Conversation

christoph2806
Copy link

Add Framework-Specific Cursor Rules

This PR adds comprehensive .cursorrules files for major frameworks and technologies, providing specific guidelines and best practices for each technology stack.

Added Rules Files

  • nextjs.mdc: Next.js App Router and Server Components patterns
  • react.mdc: Modern React patterns and hooks usage
  • typescript.mdc: TypeScript strict typing guidelines
  • python.mdc: Python with Flask and SQLite patterns
  • fastapi.mdc: FastAPI modern API patterns
  • vue.mdc: Vue.js with Composition API
  • svelte.mdc: Svelte and SvelteKit patterns
  • node-express.mdc: Node.js/Express patterns
  • database.mdc: Prisma and Supabase patterns
  • tailwind.mdc: Tailwind CSS and UI components

Features

Each rules file includes:

  • Specific glob patterns for file matching
  • Framework-specific best practices
  • Performance optimization guidelines
  • Testing and security practices
  • Code organization patterns
  • Development workflow recommendations

Implementation Details

  • All files use consistent frontmatter format with description and globs
  • Rules are organized in logical sections
  • Each section contains specific, actionable guidelines
  • Focus on modern practices and patterns
  • Emphasis on type safety and security

Testing

The rules have been verified to:

  • Use correct glob patterns
  • Follow consistent formatting
  • Provide clear, actionable guidelines
  • Cover essential aspects of each technology

Next Steps

  • Add more framework-specific rules
  • Enhance existing rules with more detailed examples
  • Add cross-framework integration patterns
  • Include more security guidelines

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