Skip to content

Commit

Permalink
✅ fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Apr 15, 2024
1 parent 5e3c897 commit 0f72d97
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 19 deletions.
2 changes: 0 additions & 2 deletions baker/SiteBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ export class SiteBaker {
const publishedChartsRaw = await mapSlugsToConfigs(knex)
const publishedCharts: LinkedChart[] = []

let i = 0
for (const publishedChartsRawChunk of chunk(
publishedChartsRaw,
20
Expand All @@ -357,7 +356,6 @@ export class SiteBaker {
})
})
)
i++
}
const publishedChartsBySlug = keyBy(publishedCharts, "originalSlug")

Expand Down
1 change: 0 additions & 1 deletion baker/algolia/algoliaUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import {
import { getIndexName } from "../../site/search/searchClient.js"
import { ObjectWithObjectID } from "@algolia/client-search"
import { SearchIndex } from "algoliasearch"
import { gdocFromJSON } from "../../db/model/Gdoc/GdocFactory.js"
import { match, P } from "ts-pattern"

interface TypeAndImportance {
Expand Down
1 change: 0 additions & 1 deletion baker/algolia/indexToAlgolia.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs from "fs"
import * as db from "../../db/db.js"
import * as wpdb from "../../db/wpdb.js"
import { ALGOLIA_INDEXING } from "../../settings/serverSettings.js"
Expand Down
1 change: 0 additions & 1 deletion baker/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { countryProfileSpecs } from "../site/countryProfileProjects.js"
import { ExplorerAdminServer } from "../explorerAdminServer/ExplorerAdminServer.js"
import { EXPLORERS_ROUTE_FOLDER } from "../explorer/ExplorerConstants.js"
import { ExplorerProgram } from "../explorer/ExplorerProgram.js"
import { GdocPost } from "../db/model/Gdoc/GdocPost.js"
import { getPostsFromSnapshots } from "../db/model/Post.js"
import { calculateDataInsightIndexPageCount } from "../db/model/Gdoc/gdocUtils.js"

Expand Down
1 change: 0 additions & 1 deletion db/model/Gdoc/GdocBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
LinkedIndicator,
keyBy,
ImageMetadata,
excludeUndefined,
OwidGdocErrorMessage,
OwidGdocErrorMessageType,
excludeNullish,
Expand Down
3 changes: 1 addition & 2 deletions db/model/Gdoc/GdocFactory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get, groupBy, pick } from "lodash"
import { get, groupBy } from "lodash"
import { match, P } from "ts-pattern"
import {
DATA_INSIGHTS_INDEX_PAGE_SIZE,
Expand All @@ -9,7 +9,6 @@ import {
DbPlainTag,
DbRawPostGdoc,
GdocsContentSource,
ImageMetadata,
OwidGdoc,
OwidGdocBaseInterface,
OwidGdocIndexItem,
Expand Down
11 changes: 2 additions & 9 deletions db/model/Gdoc/GdocPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ import { ADMIN_BASE_URL } from "../../../settings/clientSettings.js"
import { parseDetails, parseFaqs } from "./rawToEnriched.js"
import { htmlToEnrichedTextBlock } from "./htmlToEnriched.js"
import { GdocBase } from "./GdocBase.js"
import {
KnexReadWriteTransaction,
KnexReadonlyTransaction,
knexRaw,
} from "../../db.js"
import {
getGdocBaseObjectById,
getAndLoadPublishedGdocPosts,
} from "./GdocFactory.js"
import { KnexReadonlyTransaction, knexRaw } from "../../db.js"
import { getGdocBaseObjectById } from "./GdocFactory.js"

export class GdocPost extends GdocBase implements OwidGdocPostInterface {
content!: OwidGdocPostContent
Expand Down
2 changes: 0 additions & 2 deletions db/model/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
DbInsertImage,
serializeImageRow,
ImagesTableName,
merge,
excludeUndefined,
} from "@ourworldindata/utils"
import { OwidGoogleAuth } from "../OwidGoogleAuth.js"
Expand All @@ -32,7 +31,6 @@ import {
GDOCS_SHARED_DRIVE_ID,
} from "../../settings/serverSettings.js"
import { KnexReadWriteTransaction, KnexReadonlyTransaction } from "../db.js"
import { at } from "lodash"

class ImageStore {
async fetchImageMetadata(
Expand Down

0 comments on commit 0f72d97

Please sign in to comment.