Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix eslint errors

Roman Pominovd8d150208351
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/handlers.stories.tsx b/apps/designer/app/shared/design-system/components/primitives/dnd/handlers.stories.tsx
index 6feebdb92f..38b39b7ab0 100644
--- a/apps/designer/app/shared/design-system/components/primitives/dnd/handlers.stories.tsx
+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/handlers.stories.tsx
@@ -23,6 +23,7 @@ export const Playground = () => {
},
onDropTargetChange({
rect,
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
area,
target,
}: {
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/use-auto-scroll.ts b/apps/designer/app/shared/design-system/components/primitives/dnd/use-auto-scroll.ts
index c2cf9b9515..e965d0481f 100644
--- a/apps/designer/app/shared/design-system/components/primitives/dnd/use-auto-scroll.ts
+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/use-auto-scroll.ts
@@ -3,7 +3,7 @@ import { useRef, type MutableRefObject } from "react";
// Time between framse of scroll animation in milliseconds
const FRAME_PERIOD = 30;
-let getSpeed = (
+const getSpeed = (
pointerPosition: number,
containerStart: number,
containerEnd: number,
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/use-move.ts b/apps/designer/app/shared/design-system/components/primitives/dnd/use-move.ts
index 66d9e83bcb..0dc0c6af54 100644
--- a/apps/designer/app/shared/design-system/components/primitives/dnd/use-move.ts
+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/use-move.ts
@@ -1,3 +1,5 @@
+/* eslint-disable prefer-const */
+/* eslint-disable func-style */
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");