From 5f6c182e6554a7ee3081a1aaa6503bd408203d3b Mon Sep 17 00:00:00 2001
From: sverben <59171289+sverben@users.noreply.github.com>
Date: Fri, 3 May 2024 13:43:24 +0200
Subject: [PATCH] fix: biome kills bindings
---
biome.json | 3 ++
src/lib/components/core/header/Header.svelte | 34 +++++++++----------
src/lib/components/core/popups/Popup.svelte | 2 +-
.../components/core/popups/Windowed.svelte | 8 ++---
.../core/popups/popups/About.svelte | 4 +--
.../core/popups/popups/Credits.svelte | 4 +--
.../core/popups/popups/Examples.svelte | 10 +++---
.../popups/popups/LanguageSelector.svelte | 2 +-
.../core/popups/popups/Prompt.svelte | 4 +--
.../core/popups/popups/SerialMonitor.svelte | 4 +--
.../core/popups/popups/UploadLog.svelte | 4 +--
.../core/popups/popups/Uploader.svelte | 4 +--
.../core/popups/popups/Warning.svelte | 4 +--
.../core/sidepanel/SidePanel.svelte | 2 +-
src/lib/components/start/RobotSelector.svelte | 4 +--
src/lib/components/start/Start.svelte | 8 ++---
src/lib/components/ui/Button.svelte | 6 ++--
src/lib/components/ui/CodeEditor.svelte | 4 +--
src/lib/components/ui/ContextItem.svelte | 8 ++---
src/lib/components/ui/ContextMenu.svelte | 6 ++--
src/lib/components/ui/Library.svelte | 2 +-
src/lib/components/workspace/Workspace.svelte | 6 ++--
.../workspace/advanced/Advanced.svelte | 4 +--
.../components/workspace/blocks/Blocks.svelte | 22 ++++++------
.../workspace/panels/LibraryManager.svelte | 4 +--
.../workspace/python/Terminal.svelte | 4 +--
src/lib/domain/blockly/blockly.ts | 22 ++++++------
src/lib/domain/robots.ts | 16 ++++-----
src/lib/programmers/DFU.ts | 4 +--
src/lib/programmers/Pico.ts | 6 ++--
src/lib/state/app.svelte.ts | 10 +++---
src/lib/state/workspace.svelte.ts | 8 ++---
src/main.ts | 2 +-
33 files changed, 118 insertions(+), 117 deletions(-)
diff --git a/biome.json b/biome.json
index 158291f..a1ef655 100644
--- a/biome.json
+++ b/biome.json
@@ -13,6 +13,9 @@
"suspicious": {
"noAssignInExpressions": "off",
"noExplicitAny": "off"
+ },
+ "style": {
+ "useConst": "off"
}
}
}
diff --git a/src/lib/components/core/header/Header.svelte b/src/lib/components/core/header/Header.svelte
index a636b45..7bbafb8 100644
--- a/src/lib/components/core/header/Header.svelte
+++ b/src/lib/components/core/header/Header.svelte
@@ -1,23 +1,27 @@
{#snippet content()}
diff --git a/src/lib/components/core/popups/popups/Uploader.svelte b/src/lib/components/core/popups/popups/Uploader.svelte
index 114fbfb..adddeed 100644
--- a/src/lib/components/core/popups/popups/Uploader.svelte
+++ b/src/lib/components/core/popups/popups/Uploader.svelte
@@ -3,6 +3,8 @@ import { _ } from "svelte-i18n";
import Button from "$components/ui/Button.svelte";
import ProgressBar from "$components/ui/ProgressBar.svelte";
+import { type PopupState, popups } from "$state/popup.svelte";
+import { usbRequest } from "$state/upload.svelte";
import {
Prompt,
SUPPORTED_VENDOR_IDS,
@@ -11,9 +13,7 @@ import {
robot,
} from "$state/workspace.svelte";
import { getContext, onMount } from "svelte";
-import { type PopupState, popups } from "$state/popup.svelte";
import type { Writable } from "svelte/store";
-import { usbRequest } from "$state/upload.svelte";
interface Props {
source?: string;
diff --git a/src/lib/components/core/popups/popups/Warning.svelte b/src/lib/components/core/popups/popups/Warning.svelte
index f2f58d7..7cf8887 100644
--- a/src/lib/components/core/popups/popups/Warning.svelte
+++ b/src/lib/components/core/popups/popups/Warning.svelte
@@ -1,8 +1,8 @@
diff --git a/src/lib/components/workspace/blocks/Blocks.svelte b/src/lib/components/workspace/blocks/Blocks.svelte
index d7e903f..698ba8b 100644
--- a/src/lib/components/workspace/blocks/Blocks.svelte
+++ b/src/lib/components/workspace/blocks/Blocks.svelte
@@ -1,22 +1,22 @@