Cursor rule
.cursor/rules/best-practices.mdcBest practices to implement for the tech stack used
Cursor rules
Quality
34/100
Scores the file, not the repository.Length
464 words
0 headings · 0 code blocksRepository
4
— · pushed 448 days agoLast changed
3 days ago
First indexed 3 days ago.12345React Best Practices:67Use functional components and hooks instead of class components8Implement proper React memo and useMemo for performance optimization9Follow the React hooks rules strictly10Utilize React.lazy and Suspense for code-splitting and lazy loading11Implement proper error boundaries to handle and display errors gracefully1213React Hook Form Best Practices:1415Use the useForm hook for form state management and validation16Implement custom validation rules using the validate option17Utilize the watch function for real-time form value monitoring18Use the reset function to clear form state when needed19Implement proper error handling and display for form validation2021Zod Best Practices:2223Use Zod for runtime type checking and validation24Define schemas using Zod's type-safe API25Utilize Zod's infer utility to derive TypeScript types from schemas26Implement custom validation rules using Zod's refine method27Use Zod's superRefine for complex, asynchronous validation2829Supabase Best Practices:3031Use Supabase for real-time data synchronization32Implement proper error handling for Supabase operations33Utilize Supabase's authentication features securely34Implement proper data validation before storing in Supabase35Use Supabase's row-level security features for data protection3637React Query Best Practices:3839Use React Query for data fetching and caching40Implement proper query keys for efficient caching and refetching41Utilize React Query's mutation API for data updates42Implement proper error handling for queries and mutations43Use React Query's staleTime and cacheTime options for performance optimization4445Tailwind CSS Best Practices:4647Use Tailwind's utility classes for consistent styling48Implement custom themes using Tailwind's configuration49Utilize Tailwind's responsive design utilities50Implement proper accessibility practices with Tailwind51Use Tailwind's @apply directive for component-specific styles5253Radix UI Best Practices:5455Use Radix UI components for accessible and customizable UI elements56Implement proper ARIA attributes for accessibility57Utilize Radix UI's composition API for custom component creation58Implement proper state management for Radix UI components59Use Radix UI's styling API for consistent theming6061Date-fns Best Practices:6263Use date-fns for lightweight date manipulation64Implement proper timezone handling with date-fns-tz65Utilize date-fns' format and parse functions for consistent date formatting66Implement proper error handling for date operations67Use date-fns' interval functions for date range calculations6869Recharts Best Practices:7071Use Recharts for responsive and customizable charts72Implement proper data formatting for chart rendering73Utilize Recharts' event handling for interactive charts74Implement proper accessibility practices for charts75Use Recharts' animation features for smooth transitions7677Framer Motion Best Practices:7879Use Framer Motion for performant animations80Implement proper animation variants for reusable animations81Utilize Framer Motion's gesture recognition for interactive animations82Implement proper performance optimization for complex animations83Use Framer Motion's layout animations for smooth UI transitions8485General Standards:8687Keep components small and focused for better maintainability88Follow proper state management patterns for scalability89Implement proper testing practices for code reliability90Use TypeScript for improved type safety and developer experience91Implement proper security measures, such as input validation and sanitization
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
