You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/simple.mdc
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,11 @@ alwaysApply: true
9
9
# Typescript
10
10
11
11
- Avoid creating a bunch of types/interfaces if they are not shared. Especially for function props. Just inline them.
12
+
- After some amount of TypeScript changes, run `pnpm -r typecheck`.
13
+
14
+
# Rust
15
+
16
+
- After some amount of Rust changes, run `cargo check`.
12
17
13
18
# Mutation
14
19
- Never do manual state management for form/mutation. Things like setError is anti-pattern. use useForm(from tanstack-form) and useQuery/useMutation(from tanstack-query) for 99% cases.
@@ -19,7 +24,6 @@ alwaysApply: true
19
24
20
25
# Misc
21
26
- Do not create summary docs or example code file if not requested. Plan is ok.
22
-
- After a significant amount of TypeScript changes, run `pnpm -r typecheck`.
23
27
- If there are many classNames and they have conditional logic, use `cn` (import it with `import { cn } from "@hypr/utils"`). It is similar to `clsx`. Always pass an array. Split by logical grouping.
0 commit comments