Files
diet/.cursor/rules/project-overview.mdc
Денис Шкабатур 673760f9da feat: initialize project with Vite + React + TypeScript + Tailwind CSS
- Set up Vite 7 + React 19 + TypeScript 5 + Tailwind CSS 4
- Configure path aliases (@/ -> src/)
- Create Layout with Header and Footer components
- Create HomePage with hero section and feature highlights
- Set up cursor rules for agent-driven development
- Create PLAN.md and LESSONS.md for progress tracking

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 12:21:03 +03:00

31 lines
1.2 KiB
Plaintext

---
description: Project overview and conventions for the Diet Reference App
alwaysApply: true
---
# Diet & Healthy Weight Reference App
## Project
Static SPA — справочник методик похудения и здорового веса. Vite 6 + React 19 + TypeScript 5 + Tailwind CSS 4 + React Router 7.
## Key Conventions
- All code in TypeScript strict mode — no `any`, no `as` casts without justification
- Functional components only, prefer named exports
- Custom hooks for reusable logic (prefix `use`)
- Data lives in `src/data/` as typed TS modules
- All user state (theme, bookmarks) via localStorage through custom hooks
- Semantic HTML + ARIA attributes for accessibility
- Russian language for UI content, English for code (variable names, comments)
## File Structure
- `src/components/` — reusable UI components (Button, Card, Badge, etc.)
- `src/pages/` — route-level page components
- `src/data/` — static content data (methods, categories)
- `src/hooks/` — custom React hooks
- `src/utils/` — pure utility functions
- `src/types/` — shared TypeScript types and interfaces
## Commit Style
- Atomic commits per feature
- Format: `feat: short description` / `fix:` / `refactor:` / `style:` / `docs:`