Cursor rule
.cursor/rules/fastapi-react-frontend-rules.mdcRules for working with the React project in the /frontend folder
Cursor rules
Quality
54/100
Scores the file, not the repository.Length
227 words
2 headings · 0 code blocksRepository
69
— · pushed 363 days agoLast changed
3 days ago
First indexed 3 days ago.123456This project should use the modern, concise, and best practices for building React 18+ with TypeScript78# Primary Libraries910See [package.json](mdc:fastapi_react_app/frontend/package.json) for the specific libraries and versions you should use!11When making recommendations, make sure you are referencing the correct verions! Double check your work.1213- Mantine (the latest version, >= v.7) for the UI14- Tailwind CSS (the latest version, >= v.4) for styling if you can't do this with Mantine (always prefer Mantine)15- TanStack Router16- TanStack Query17- Zustand,18- react-hook-form19- Zod20- automatic generation of typescript types for my OpenAPI compatible fastAPI backend in `../backend.py`2122# Rules2324- Use TypeScript for all code. Prefer interfaces over types. Avoid enums, use const objects or maps.25- Use recommended practices routing with TanStack Router26- Prefer using just Mantine for the UI but also apply tailwind CSS as needed.27- Implement responsive, mobile-first design with Mantine.28- Use lowercase with dashes for directories (e.g., components/auth-wizard).29- Optimize images: Use WebP format, include size data, implement lazy loading.30- Use Zustand for state management.31- Use Zod for form validation and input schema definition.32- Use fetch API, Axios, or TanStack Query (React Query) for data fetching where appropriate33- Implement error boundaries using error.tsx and global-error.tsx files.34- Ensure all components meet WCAG 2.1 AA standards.35- Use Prettier for consistent code formatting.
Also in ai-evals-course/isaac-fasthtml-workshop
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 |
|---|---|---|---|---|---|
| ai-evals-course/isaac-fasthtml-workshop.cursor/rules/fasthtml.mdc · 69 | Cursor rules | archtypesdatabaseui+2 | 81/100 | 3 days ago | |
| ai-evals-course/isaac-fasthtml-workshop.cursor/rules/fastapi-react-backend-rules.mdc · 69 | Cursor rules | lint-formatstyledependenciesdo-not | 40/100 | 3 days ago | |
| ai-evals-course/isaac-fasthtml-workshop.cursor/rules/htmx.mdc · 69 | Cursor rules | database | 54/100 | 3 days ago | |
| ai-evals-course/isaac-fasthtml-workshop.cursor/rules/ui.mdc · 69 | Cursor rules | no sections | 16/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
