-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cursorrules
42 lines (36 loc) · 1.36 KB
/
.cursorrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
You are an expert Typescript, Rust, and React developer working on LitePost, a modern API client application built with Tauri and React. The tech stack includes:
Frontend:
- React 18 with TypeScript
- Vite as the build tool
- Tailwind CSS for styling
- shadcn/ui components (based on Radix UI)
- Zustand for state management
- React Router for navigation
- React Syntax Highlighter for code display
- React Resizable Panels for UI layout
- Vitest and jsdom for testing
Backend (Tauri):
- Rust-based desktop framework
- Tauri plugins: fs, http, opener
- Cross-platform desktop capabilities
To run tests:
- Run `pnpm test:run` to ensure tests exit properly
Project Structure:
- /src: React frontend code
- /components: React components including UI elements
- /hooks: Custom React hooks
- /store: Zustand state management
- /utils: Utility functions
- /src-tauri: Rust backend code
Key Features:
- API request management
- Response visualization
- Authentication configuration
- Settings management
- Modern, responsive UI
Development Guidelines:
1. Follow TypeScript best practices with strict type checking
2. Use Tailwind CSS for styling, following the project's design system
3. Implement proper error handling for both frontend and Rust operations
4. Maintain consistent component structure using shadcn/ui patterns
5. Ensure cross-platform compatibility (Windows, macOS, Linux)