mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Improve Cursor rules
This commit is contained in:
@@ -5,4 +5,9 @@ alwaysApply: true
|
|||||||
When working with this project, follow these rules:
|
When working with this project, follow these rules:
|
||||||
|
|
||||||
- NEVER do anything i didn't ask you for!
|
- NEVER do anything i didn't ask you for!
|
||||||
- Use double quotes ("") for strings.
|
- Use double quotes ("") for strings.
|
||||||
|
- Do NOT "test the implementation" when you are done. The only exception is when you
|
||||||
|
need to typecheck or build the app, in that case:
|
||||||
|
|
||||||
|
- To typecheck, run "npm run frontend:typecheck".
|
||||||
|
- To build, run "npm run frontend:build".
|
||||||
@@ -4,6 +4,6 @@ alwaysApply: true
|
|||||||
|
|
||||||
When you work with UI:
|
When you work with UI:
|
||||||
|
|
||||||
1. Use MDUI components as HTML elements
|
1. Use MDUI components as HTML elements with the name "mdui-***". In JSX/TSX use the same elements and props as in HTML.
|
||||||
2. Do NOT dynamically create HTML if it's going to be loaded when the page loads, instead put it statically in the HTML.
|
2. Do NOT dynamically create HTML if it's going to be loaded when the page loads, instead put it statically in the HTML.
|
||||||
3. The supporting text slot for MDUI lists is "description".
|
3. The supporting text slot for MDUI lists is "description".
|
||||||
Reference in New Issue
Block a user