From 0bce20b4eef77da777cabb9272c8e247d23e2f45 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:50:39 +0400 Subject: [PATCH] chore: remove cursor rules --- .cursor/rules/always-test-before-summary.mdc | 6 ----- .cursor/rules/no-random-colors | 6 ----- .cursor/rules/no-useless-comments.mdc | 6 ----- .cursor/rules/no-useless-duplication.mdc | 6 ----- .cursor/rules/nodecar-modifications.mdc | 6 ----- .../rules/tests-and-linting-after-changes.mdc | 6 ----- .cursor/rules/use-singletons | 6 ----- CLAUDE.md | 23 +++++++++++++++++++ 8 files changed, 23 insertions(+), 42 deletions(-) delete mode 100644 .cursor/rules/always-test-before-summary.mdc delete mode 100644 .cursor/rules/no-random-colors delete mode 100644 .cursor/rules/no-useless-comments.mdc delete mode 100644 .cursor/rules/no-useless-duplication.mdc delete mode 100644 .cursor/rules/nodecar-modifications.mdc delete mode 100644 .cursor/rules/tests-and-linting-after-changes.mdc delete mode 100644 .cursor/rules/use-singletons create mode 100644 CLAUDE.md diff --git a/.cursor/rules/always-test-before-summary.mdc b/.cursor/rules/always-test-before-summary.mdc deleted file mode 100644 index 1b279e5..0000000 --- a/.cursor/rules/always-test-before-summary.mdc +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -Before finishing the task and showing summary, always run "pnpm format && pnpm lint && pnpm test" at the root of the project to ensure that you don't finish with broken application. \ No newline at end of file diff --git a/.cursor/rules/no-random-colors b/.cursor/rules/no-random-colors deleted file mode 100644 index 182827a..0000000 --- a/.cursor/rules/no-random-colors +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -If you are modifying the UI, do not add random colors that are not controlled by src/lib/themes.ts file. \ No newline at end of file diff --git a/.cursor/rules/no-useless-comments.mdc b/.cursor/rules/no-useless-comments.mdc deleted file mode 100644 index 562c19c..0000000 --- a/.cursor/rules/no-useless-comments.mdc +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -Don't leave comments that don't add value. \ No newline at end of file diff --git a/.cursor/rules/no-useless-duplication.mdc b/.cursor/rules/no-useless-duplication.mdc deleted file mode 100644 index 49af230..0000000 --- a/.cursor/rules/no-useless-duplication.mdc +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -Do not duplicate code unless you have a very good reason to do so. It is important that the same logic is not duplicated multiple times. \ No newline at end of file diff --git a/.cursor/rules/nodecar-modifications.mdc b/.cursor/rules/nodecar-modifications.mdc deleted file mode 100644 index b9423f4..0000000 --- a/.cursor/rules/nodecar-modifications.mdc +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -Anytime you change nodecar's code and try to test, recompile it with "cd nodecar && pnpm build". \ No newline at end of file diff --git a/.cursor/rules/tests-and-linting-after-changes.mdc b/.cursor/rules/tests-and-linting-after-changes.mdc deleted file mode 100644 index 8b391a0..0000000 --- a/.cursor/rules/tests-and-linting-after-changes.mdc +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -After your changes, instead of running specific tests or linting specific files, run "pnpm format && pnpm lint && pnpm test". It means that you first format the code, then lint it, then test it, so that no part is broken after your changes. \ No newline at end of file diff --git a/.cursor/rules/use-singletons b/.cursor/rules/use-singletons deleted file mode 100644 index b951b9a..0000000 --- a/.cursor/rules/use-singletons +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: -globs: -alwaysApply: true ---- -If there is a global singleton of a struct, only use it inside a method while properly initializing it, unless I have explicitly specified in the request otherwise. \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..f8e6ee3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,23 @@ +# Project Guidelines + +## Testing and Quality + +- After making changes, run `pnpm format && pnpm lint && pnpm test` at the root of the project +- Always run this command before finishing a task to ensure the application isn't broken + +## Code Quality + +- Don't leave comments that don't add value +- Don't duplicate code unless there's a very good reason; keep the same logic in one place + +## Nodecar + +- After changing nodecar's code, recompile it with `cd nodecar && pnpm build` before testing + +## Singletons + +- If there is a global singleton of a struct, only use it inside a method while properly initializing it, unless explicitly specified otherwise + +## UI Theming + +- When modifying the UI, don't add random colors that are not controlled by `src/lib/themes.ts`