From 93739624168acd0b5eb0773e7519e771d93aca8d Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Thu, 9 Jan 2025 16:33:38 +0200 Subject: [PATCH] Lint fixes --- packages/app/src/cli/services/info.ts | 2 +- packages/cli-kit/src/private/node/ui/components/TabularData.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/cli/services/info.ts b/packages/app/src/cli/services/info.ts index 4de56029b5..ccef859451 100644 --- a/packages/app/src/cli/services/info.ts +++ b/packages/app/src/cli/services/info.ts @@ -231,7 +231,7 @@ class AppInfo { ) } }) - .filter((section: CustomSection | undefined) => section !== undefined) as CustomSection[] + .filter((section: CustomSection | undefined) => section !== undefined) } extensionSubSection(extension: ExtensionInstance): InlineToken[][] { diff --git a/packages/cli-kit/src/private/node/ui/components/TabularData.tsx b/packages/cli-kit/src/private/node/ui/components/TabularData.tsx index b865da1dbf..a228308af5 100644 --- a/packages/cli-kit/src/private/node/ui/components/TabularData.tsx +++ b/packages/cli-kit/src/private/node/ui/components/TabularData.tsx @@ -11,7 +11,7 @@ export interface TabularDataProps { const TabularData: FunctionComponent = ({tabularData: data, firstColumnSubdued}) => { const columnWidths: number[] = data.reduce((acc, row) => { row.forEach((cell, index) => { - acc[index] = Math.max(acc[index] ?? 0, unstyled((tokenItemToString(cell))).length) + acc[index] = Math.max(acc[index] ?? 0, unstyled(tokenItemToString(cell)).length) }) return acc }, [])