From 4338ea847756b885edae98f59322f0ef8995cbd9 Mon Sep 17 00:00:00 2001 From: "Amir H. Khanjani" <72540492+ahkhanjani@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:32:37 +0330 Subject: [PATCH] fix lint --- .../src/utils/rects/getIntersectingRectangle.test.ts | 2 +- .../react-resizable-panels/src/utils/rects/intersects.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts b/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts index 40959fc7..53e22999 100644 --- a/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts +++ b/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts @@ -4,7 +4,7 @@ import { Rectangle } from "./types"; const emptyRect = { x: 0, y: 0, width: 0, height: 0 }; const rect = { x: 25, y: 25, width: 50, height: 50 }; -function forkRect(partial: Partial, baseRect: Rectangle = rect) { +function forkRect(partial: Partial) { return { ...rect, ...partial }; } diff --git a/packages/react-resizable-panels/src/utils/rects/intersects.test.ts b/packages/react-resizable-panels/src/utils/rects/intersects.test.ts index 2cf38eca..2f550518 100644 --- a/packages/react-resizable-panels/src/utils/rects/intersects.test.ts +++ b/packages/react-resizable-panels/src/utils/rects/intersects.test.ts @@ -4,7 +4,7 @@ import { Rectangle } from "./types"; const emptyRect = { x: 0, y: 0, width: 0, height: 0 }; const rect = { x: 25, y: 25, width: 50, height: 50 }; -function forkRect(partial: Partial, baseRect: Rectangle = rect) { +function forkRect(partial: Partial) { return { ...rect, ...partial }; }