From dcc466ec148f1c6f3eaf21dea02df206fc1a6fee Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Sun, 28 Sep 2025 16:24:18 +0300 Subject: [PATCH] Improve Cursor rules --- .cursor/rules/general.mdc | 4 +++- .cursor/rules/ui.mdc | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cursor/rules/general.mdc b/.cursor/rules/general.mdc index f15db0b..0ee9eca 100644 --- a/.cursor/rules/general.mdc +++ b/.cursor/rules/general.mdc @@ -17,4 +17,6 @@ When working with this project, follow these rules: - If possible, try to update files in a single edit. - When you need a delay, use `await delay(millis);` in an async function. If the current function is not async, make it async. The import is `/frontend/src/utils/utils`. -- When you complete your task, remove unused imports if there are any. \ No newline at end of file +- When you complete your task, remove unused imports if there are any. +- Follow DRY, SOLID, YAGNI and KISS principles. +- Do NOT use old, outdated or deprecated APIs and functions. \ No newline at end of file diff --git a/.cursor/rules/ui.mdc b/.cursor/rules/ui.mdc index a49b459..71390a4 100644 --- a/.cursor/rules/ui.mdc +++ b/.cursor/rules/ui.mdc @@ -1,10 +1,8 @@ --- alwaysApply: true --- - When you work with UI: 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. 3. The supporting text slot for MDUI lists is "description". 4. When working with lists/sets in states, use the "useImmer" hook. \ No newline at end of file