From d85ec6fb234f3b0e1553c90850af95283065432c Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Tue, 19 Sep 2023 16:40:51 +0200 Subject: [PATCH] :honeybee: lint issues --- packages/@ourworldindata/utils/src/GdocsUtils.ts | 2 +- site/DataPageV2Content.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@ourworldindata/utils/src/GdocsUtils.ts b/packages/@ourworldindata/utils/src/GdocsUtils.ts index 052d1cba252..5f3e391e2c7 100644 --- a/packages/@ourworldindata/utils/src/GdocsUtils.ts +++ b/packages/@ourworldindata/utils/src/GdocsUtils.ts @@ -166,7 +166,7 @@ const convertMarkdownNodeToSpan = (node: EveryMarkdownNode): Span[] => { //.otherwise(() => ({ spanType: "span-simple-text" as const, text: "" })) } -const convertMarkdownNodesToSpans = (nodes: MarkdownRoot) => +const convertMarkdownNodesToSpans = (nodes: MarkdownRoot): Span[] => nodes.children.flatMap(convertMarkdownNodeToSpan) export const markdownToEnrichedTextBlock = ( diff --git a/site/DataPageV2Content.tsx b/site/DataPageV2Content.tsx index 8df870f6ebe..982e4b0cf96 100644 --- a/site/DataPageV2Content.tsx +++ b/site/DataPageV2Content.tsx @@ -20,7 +20,6 @@ import cx from "classnames" import { DebugProvider } from "./gdocs/DebugContext.js" import { CodeSnippet } from "./blocks/CodeSnippet.js" import dayjs from "dayjs" -import { P, match } from "ts-pattern" declare global { interface Window { _OWID_DATAPAGEV2_PROPS: DataPageV2ContentFields