From c5a2b89410c1328657f05fed2067a64fb52e8ce4 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Sat, 16 Mar 2024 18:31:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9D=20fix=20lint=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminSiteClient/GdocsIndexPage.tsx | 1 - adminSiteClient/GdocsPreviewPage.tsx | 1 - db/model/Gdoc/GdocBase.ts | 7 +------ db/model/Gdoc/GdocFactory.ts | 3 +-- packages/@ourworldindata/utils/src/Util.ts | 1 - 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/adminSiteClient/GdocsIndexPage.tsx b/adminSiteClient/GdocsIndexPage.tsx index 404cf2eb689..76176819997 100644 --- a/adminSiteClient/GdocsIndexPage.tsx +++ b/adminSiteClient/GdocsIndexPage.tsx @@ -22,7 +22,6 @@ import { buildSearchWordsFromSearchString, filterFunctionForSearchWords, spansToUnformattedPlainText, - OwidGdoc, checkIsGdocPost, OwidGdocIndexItem, } from "@ourworldindata/utils" diff --git a/adminSiteClient/GdocsPreviewPage.tsx b/adminSiteClient/GdocsPreviewPage.tsx index 8a108d84576..2ceb720cf4d 100644 --- a/adminSiteClient/GdocsPreviewPage.tsx +++ b/adminSiteClient/GdocsPreviewPage.tsx @@ -41,7 +41,6 @@ import { openSuccessNotification } from "./gdocsNotifications.js" import { GdocsDiffButton } from "./GdocsDiffButton.js" import { GdocsDiff } from "./GdocsDiff.js" import { BAKED_BASE_URL } from "../settings/clientSettings.js" -import { extractGdocIndexItem } from "@ourworldindata/types/dist/gdocTypes/Gdoc.js" export const GdocsPreviewPage = ({ match, history }: GdocsMatchProps) => { const { id } = match.params diff --git a/db/model/Gdoc/GdocBase.ts b/db/model/Gdoc/GdocBase.ts index c37820dbcd9..cb5c5405f65 100644 --- a/db/model/Gdoc/GdocBase.ts +++ b/db/model/Gdoc/GdocBase.ts @@ -15,7 +15,6 @@ import { EnrichedBlockResearchAndWritingLink, traverseEnrichedSpan, uniq, - omit, identity, OwidGdocBaseInterface, OwidGdocPublicationContext, @@ -53,11 +52,7 @@ import { getVariableOfDatapageIfApplicable, } from "../Variable.js" import { createLinkFromUrl } from "../Link.js" -import { - DbEnrichedPostGdoc, - OwidGdocContent, - OwidGdocType, -} from "@ourworldindata/types" +import { OwidGdocContent, OwidGdocType } from "@ourworldindata/types" import { KnexReadonlyTransaction } from "../../db" export class GdocBase implements OwidGdocBaseInterface { diff --git a/db/model/Gdoc/GdocFactory.ts b/db/model/Gdoc/GdocFactory.ts index 2152abe7798..0691333661b 100644 --- a/db/model/Gdoc/GdocFactory.ts +++ b/db/model/Gdoc/GdocFactory.ts @@ -1,4 +1,4 @@ -import { get, groupBy, omit } from "lodash" +import { get, groupBy } from "lodash" import { match, P } from "ts-pattern" import { DATA_INSIGHTS_INDEX_PAGE_SIZE, @@ -427,7 +427,6 @@ export async function loadPublishedGdocAuthors( types: [OwidGdocType.Author], } ) - const ids = rows.map((row) => row.id) const enrichedRows = rows.map((row) => { return { diff --git a/packages/@ourworldindata/utils/src/Util.ts b/packages/@ourworldindata/utils/src/Util.ts index 38b8d23a2d2..56e3580ce4d 100644 --- a/packages/@ourworldindata/utils/src/Util.ts +++ b/packages/@ourworldindata/utils/src/Util.ts @@ -170,7 +170,6 @@ import { UserCountryInformation, Time, TimeBound, - OwidGdocIndexItem, } from "@ourworldindata/types" import { PointVector } from "./PointVector.js" import React from "react"