prmbr-image-mksaas/.cursor/rules/zod-best-practices.mdc

11 lines
361 B
Plaintext

---
description: Best practices for schema validation with Zod
globs: *.tsx,*.ts
alwaysApply: false
---
- Define clear and reusable schemas for data validation
- Use Zod's type inference for TypeScript integration and type safety
- Implement custom validation rules using Zod's `refine` method
- Utilize Zod with `react-hook-form` for seamless form validation