-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cursorrules
17 lines (17 loc) · 1.05 KB
/
.cursorrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use kebab case for file names.
optimize react component rendering by using memo and useMemo and useCallback.
zod for form, api, ai generation validation.
tailwindcss for styling.
use frame motion for animation.
make sure to separate view and business logic components.
in workflow files use log utility from temporal.
if view components gets too complex, use useImmerReducer for state management.
use cn utility function for conditional class names.
break apart long list of class names into multiple lines if it longer than 100 characters by using cn utility function.
use shadcn/ui for components.
tailwindcss typography is already installed for text styling, use prose classes for text styling.
make sure to use slate color palette for backgrounds and text.
do not hardcode width and height, use tailwindcss classes instead, only use rem values if absolutely necessary.
make sure components are accessible, add aria labels where necessary.
component export should be `export function ComponentName() {}`.
do not comment code when suggesting edits, just make the changes.