Cursor rule
.cursor/rules/development-workflow.mdcCursor rules
Quality
81/100
Scores the file, not the repository.Length
472 words
12 headings · 1 code blocksRepository
0
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Development Workflow and Quality Standards23## Development Process451. **Plan**: Understand requirements and design solution62. **Code**: Follow established patterns and conventions73. **Test**: Ensure functionality works as expected84. **Build**: Run `npm run build` to verify no TypeScript errors95. **Review**: Check code quality and adherence to standards1011## Code Quality Standards1213- **TypeScript**: Always use strict mode, no `any` types14- **React**: Functional components, minimal useEffect usage15- **Performance**: Mobile-first design, optimize for performance16- **Accessibility**: Proper ARIA labels, keyboard navigation17- **Error Handling**: Graceful error handling with user feedback1819## File Naming Conventions2021- **Components**: PascalCase (e.g., `ProductCard.tsx`)22- **Hooks**: camelCase starting with `use` (e.g., `useAuth.ts`)23- **Services**: camelCase (e.g., `orderService.ts`)24- **Types**: camelCase (e.g., `productTypes.ts`)25- **Constants**: UPPER_SNAKE_CASE (e.g., `enums.ts`)2627## Import Organization2829```typescript30// 1. React and external libraries31import React from "react";32import { useNavigate } from "react-router";3334// 2. Internal components and hooks35import { Button } from "@/components/ui/button";36import { useAuth } from "@/contexts/AuthContext";3738// 3. Types and constants39import { ROUTE_NAMES } from "@/constants/enums";40import type { Product } from "@/types/product";4142// 4. Utilities and services43import { cn } from "@/lib/utils";44import { productService } from "@/lib/productService";45```4647## Testing Requirements4849- Test all user interactions and flows50- Verify mobile responsiveness51- Check error handling scenarios52- Ensure proper loading states53- Test with different data sets5455## Build Verification5657- **Always run `npm run build` before committing**58- Fix any TypeScript compilation errors59- Ensure no build warnings60- Verify all imports resolve correctly61- Check that all types are properly defined6263## Performance Guidelines6465- Implement proper loading states66- Use skeleton components for content loading67- Optimize images and assets68- Implement proper caching strategies69- Minimize bundle size7071## Mobile-First Design7273- Design for mobile devices first (320px+)74- Use responsive breakpoints (sm:, md:, lg:, xl:)75- Ensure touch-friendly interactions76- Test on various screen sizes77- Optimize for mobile performance7879## Error Prevention8081- Use TypeScript strict mode82- Implement proper validation83- Handle edge cases gracefully84- Provide clear error messages85- Log errors for debugging8687## Code Review Checklist8889- [ ] TypeScript compiles without errors90- [ ] Mobile responsive design implemented91- [ ] Proper error handling in place92- [ ] Follows established patterns93- [ ] Uses enums from constants94- [ ] Implements pagination for lists95- [ ] No unnecessary useEffect usage96- [ ] Proper component composition97- [ ] Accessibility considerations98- [ ] Performance optimizations99100## Common Pitfalls to Avoid101102- Don't use `any` type in TypeScript103- Don't hardcode values that exist in enums104- Don't create components without proper typing105- Don't skip error handling106- Don't ignore mobile responsiveness107- Don't use useEffect when not necessary108 description:109 globs:110 alwaysApply: false111112---113
Also in KAMAL20201/SneakerMarketplace
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| KAMAL20201/SneakerMarketplace.cursor/rules/api-patterns.mdc · 0 | Cursor rules | styletypessecuritydatabase+1 | 58/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplace.cursor/rules/project-conventions.mdc · 0 | Cursor rules | buildteststylearch+4 | 77/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplace.cursor/rules/project-overview.mdc · 0 | Cursor rules | stylearchtypes | 52/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplace.cursor/rules/react-patterns.mdc · 0 | Cursor rules | stylearchuiperformance | 58/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplace.cursor/rules/typescript-standards.mdc · 0 | Cursor rules | styletypesapiui+1 | 61/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplace.cursor/rules/ui-components.mdc · 0 | Cursor rules | archui | 54/100 | 3 days ago | |
| KAMAL20201/SneakerMarketplaceAGENTS.md · 0 | AGENTS.md | stylesecuritydo-not | 45/100 | 3 days ago |
Diff against .cursor/rules/api-patterns.mdc Diff against .cursor/rules/project-conventions.mdc Diff against .cursor/rules/project-overview.mdc Diff against .cursor/rules/react-patterns.mdc Diff against .cursor/rules/typescript-standards.mdc Diff against .cursor/rules/ui-components.mdc Diff against AGENTS.md
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 |
