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.