mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-10 09:33:15 +00:00
update project cursor rules
This commit is contained in:
5
.cursor/rules/Button-loading-state.mdc
Normal file
5
.cursor/rules/Button-loading-state.mdc
Normal file
@@ -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.
|
||||
7
.cursor/rules/TypeScript-rules.mdc
Normal file
7
.cursor/rules/TypeScript-rules.mdc
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
When writing TypeScript:
|
||||
|
||||
Prefer to use types instead of interfaces.
|
||||
5
.cursor/rules/Use-React-form-and-Zod-schemas.mdc
Normal file
5
.cursor/rules/Use-React-form-and-Zod-schemas.mdc
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
When creating forms, use React form for validation and use Zod schemas.
|
||||
Reference in New Issue
Block a user