From ab7d385a13236f47fe66b6ffdfd0f28151c44bff Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Sat, 1 Aug 2026 21:38:41 +0000 Subject: [PATCH] style: auto-fix lint and format --- e2e/shared/create-homarr-container.ts | 2 +- packages/api/src/router/board/grid-algorithm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/shared/create-homarr-container.ts b/e2e/shared/create-homarr-container.ts index 80e5646e0..fada1c440 100644 --- a/e2e/shared/create-homarr-container.ts +++ b/e2e/shared/create-homarr-container.ts @@ -1,5 +1,5 @@ import { GenericContainer, Wait } from "testcontainers"; -import { Environment } from "testcontainers/build/types"; +import type { Environment } from "testcontainers/build/types"; export const createHomarrContainer = ( options: { diff --git a/packages/api/src/router/board/grid-algorithm.ts b/packages/api/src/router/board/grid-algorithm.ts index ea155a4e5..78d7ab7fc 100644 --- a/packages/api/src/router/board/grid-algorithm.ts +++ b/packages/api/src/router/board/grid-algorithm.ts @@ -28,7 +28,7 @@ export const generateResponsiveGridFor = ({ }: GridAlgorithmInput): GridAlgorithmOutput => { const itemsOfCurrentSection = items .filter((item) => item.sectionId === sectionId) - .sort((itemA, itemB) => + .toSorted((itemA, itemB) => itemA.yOffset === itemB.yOffset ? itemA.xOffset - itemB.xOffset : itemA.yOffset - itemB.yOffset, ); const normalizedItems = normalizeItems(itemsOfCurrentSection, width);