From 5a5b77cf626f2a4e66180eeaba1cff86d0221f80 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Thu, 4 Jun 2026 18:13:26 -0700 Subject: [PATCH] update project cursor rules --- .cursor/rules/Button-loading-state.mdc | 5 +++++ .cursor/rules/TypeScript-rules.mdc | 7 +++++++ .cursor/rules/Use-React-form-and-Zod-schemas.mdc | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 .cursor/rules/Button-loading-state.mdc create mode 100644 .cursor/rules/TypeScript-rules.mdc create mode 100644 .cursor/rules/Use-React-form-and-Zod-schemas.mdc diff --git a/.cursor/rules/Button-loading-state.mdc b/.cursor/rules/Button-loading-state.mdc new file mode 100644 index 000000000..351380ddd --- /dev/null +++ b/.cursor/rules/Button-loading-state.mdc @@ -0,0 +1,5 @@ +--- +alwaysApply: true +--- + +When adding submit buttons, don't change the text of the button during the loading state. Text should stay static and you should use the loading prop on the button. diff --git a/.cursor/rules/TypeScript-rules.mdc b/.cursor/rules/TypeScript-rules.mdc new file mode 100644 index 000000000..0b0a4ba28 --- /dev/null +++ b/.cursor/rules/TypeScript-rules.mdc @@ -0,0 +1,7 @@ +--- +alwaysApply: true +--- + +When writing TypeScript: + +Prefer to use types instead of interfaces. diff --git a/.cursor/rules/Use-React-form-and-Zod-schemas.mdc b/.cursor/rules/Use-React-form-and-Zod-schemas.mdc new file mode 100644 index 000000000..1dc5c33aa --- /dev/null +++ b/.cursor/rules/Use-React-form-and-Zod-schemas.mdc @@ -0,0 +1,5 @@ +--- +alwaysApply: true +--- + +When creating forms, use React form for validation and use Zod schemas.