From 9aa5b66b5472728de69696ece943550a20399f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Fri, 27 Jun 2025 22:40:07 +0200 Subject: [PATCH] Initial github copilot instructions --- .github/copilot-instructions.md | 86 +++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..33ac365 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,86 @@ +GitHub Copilot Instructions for This Repository +Use Svelte 5 runes exclusively + +Declare reactive state with $state(); derive values with $derived(); run side-effect logic with $effect() etc. +svelte.dev +svelte.dev + +Do not fall back to the legacy $: label syntax or Svelte 3/4 stores! This is important! + +Enforce a clean component structure + + + +
+ + +

{doubled}

+
+What not to do + +No inline style="" attributes. + +No external CSS files unless Tailwind cannot express the rule. + +No class names that imply design debt (.box, .wrapper, .container-1, etc.). + +Avoid non-reactive variables; if a value affects the UI, use a rune. + +NEVER $: label syntax; use $state(), $derived(), and $effect(). + +If you want to use supabse client in the browser, it is stored in the data +variable obtained from let { data } = $props(); \ No newline at end of file