From b5ee6d38d6c26456820837d59e99a2085a9eca9c Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Wed, 3 Jun 2026 01:42:24 -0700 Subject: [PATCH] Fix lint --- packages/cli/src/lib/sync.ts | 3 +-- packages/cli/test/markdown.test.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/lib/sync.ts b/packages/cli/src/lib/sync.ts index 80d314a..77714d8 100644 --- a/packages/cli/src/lib/sync.ts +++ b/packages/cli/src/lib/sync.ts @@ -142,14 +142,13 @@ export async function syncStateFromPDS( // Compute content hash — if we're updating frontmatter, hash the updated content // so the state matches what will be on disk after the update - let contentHash: string; if (needsFrontmatterUpdate) { localPost.rawContent = updateFrontmatterWithAtUri( localPost.rawContent, doc.uri, ); } - contentHash = await getContentHash(localPost); + const contentHash = await getContentHash(localPost); // Update state (preserve bskyPostRef from prior publishes) const existing = state.posts[relativeFilePath]; diff --git a/packages/cli/test/markdown.test.ts b/packages/cli/test/markdown.test.ts index be57b7a..606dc9b 100644 --- a/packages/cli/test/markdown.test.ts +++ b/packages/cli/test/markdown.test.ts @@ -7,7 +7,6 @@ import { updateFrontmatterWithAtUri, } from "../src/lib/markdown"; import type { BlogPost } from "../src/lib/types"; -import type { BlobOptions } from "node:buffer"; describe("parseFrontmatter", () => { describe("delimiters", () => { @@ -407,11 +406,11 @@ Body content here.`; expect(frontmatter.title).toBe("Example"); expect(body).toBe("Body content here."); - const coverTable = rawFrontmatter?.["cover"] as + const coverTable = rawFrontmatter?.cover as | Record | undefined; expect(coverTable).not.toBe(undefined); - const coverImageField = coverTable?.["image"] as string | undefined; + const coverImageField = coverTable?.image as string | undefined; expect(coverImageField).toBe("/covers/example.png"); }); }); -- 2.51.2