From 222ed69505949e926286d5bbe7d9c65db9237823 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 15 Feb 2026 19:23:41 -0500 Subject: [PATCH] chore: lint and format --- packages/cli/src/commands/publish.ts | 6 +++++- packages/cli/src/commands/sync.ts | 6 +++++- packages/cli/src/components/sequoia-comments.js | 3 +-- packages/cli/src/lib/atproto.ts | 12 ++++++++++-- packages/cli/src/lib/markdown.ts | 11 ++++++----- 5 files changed, 27 insertions(+), 11 deletions(-) diff --git a/packages/cli/src/commands/publish.ts b/packages/cli/src/commands/publish.ts index 2a77a5b..f62fbce 100644 --- a/packages/cli/src/commands/publish.ts +++ b/packages/cli/src/commands/publish.ts @@ -241,7 +241,11 @@ export const publishCommand = command({ let postUrl = ""; if (verbose) { - const postPath = resolvePostPath(post, config.pathPrefix, config.pathTemplate); + const postPath = resolvePostPath( + post, + config.pathPrefix, + config.pathTemplate, + ); postUrl = `\n ${config.siteUrl}${postPath}`; } log.message( diff --git a/packages/cli/src/commands/sync.ts b/packages/cli/src/commands/sync.ts index 52cc137..55489bd 100644 --- a/packages/cli/src/commands/sync.ts +++ b/packages/cli/src/commands/sync.ts @@ -151,7 +151,11 @@ export const syncCommand = command({ // Document path is like /posts/my-post-slug (or custom pathPrefix/pathTemplate) const postsByPath = new Map(); for (const post of localPosts) { - const postPath = resolvePostPath(post, config.pathPrefix, config.pathTemplate); + const postPath = resolvePostPath( + post, + config.pathPrefix, + config.pathTemplate, + ); postsByPath.set(postPath, post); } diff --git a/packages/cli/src/components/sequoia-comments.js b/packages/cli/src/components/sequoia-comments.js index 8aa2c8f..0e49491 100644 --- a/packages/cli/src/components/sequoia-comments.js +++ b/packages/cli/src/components/sequoia-comments.js @@ -588,7 +588,6 @@ class SequoiaComments extends BaseElement { this.commentsContainer = container; this.state = { type: "loading" }; this.abortController = null; - } static get observedAttributes() { @@ -701,7 +700,7 @@ class SequoiaComments extends BaseElement { `; if (this.hide) { - this.commentsContainer.style.display = 'none'; + this.commentsContainer.style.display = "none"; } break; diff --git a/packages/cli/src/lib/atproto.ts b/packages/cli/src/lib/atproto.ts index b865fb4..b999c98 100644 --- a/packages/cli/src/lib/atproto.ts +++ b/packages/cli/src/lib/atproto.ts @@ -245,7 +245,11 @@ export async function createDocument( config: PublisherConfig, coverImage?: BlobObject, ): Promise { - const postPath = resolvePostPath(post, config.pathPrefix, config.pathTemplate); + const postPath = resolvePostPath( + post, + config.pathPrefix, + config.pathTemplate, + ); const publishDate = new Date(post.frontmatter.publishDate); // Determine textContent: use configured field from frontmatter, or fallback to markdown body @@ -306,7 +310,11 @@ export async function updateDocument( const [, , collection, rkey] = uriMatch; - const postPath = resolvePostPath(post, config.pathPrefix, config.pathTemplate); + const postPath = resolvePostPath( + post, + config.pathPrefix, + config.pathTemplate, + ); const publishDate = new Date(post.frontmatter.publishDate); // Determine textContent: use configured field from frontmatter, or fallback to markdown body diff --git a/packages/cli/src/lib/markdown.ts b/packages/cli/src/lib/markdown.ts index 9bec8bc..1f97ece 100644 --- a/packages/cli/src/lib/markdown.ts +++ b/packages/cli/src/lib/markdown.ts @@ -231,10 +231,7 @@ export function getSlugFromOptions( return slug; } -export function resolvePathTemplate( - template: string, - post: BlogPost, -): string { +export function resolvePathTemplate(template: string, post: BlogPost): string { const publishDate = new Date(post.frontmatter.publishDate); const year = String(publishDate.getFullYear()); const month = String(publishDate.getMonth() + 1).padStart(2, "0"); @@ -270,7 +267,11 @@ export function resolvePathTemplate( return result; } -export function resolvePostPath(post: BlogPost, pathPrefix?: string, pathTemplate?: string): string { +export function resolvePostPath( + post: BlogPost, + pathPrefix?: string, + pathTemplate?: string, +): string { if (pathTemplate) { return resolvePathTemplate(pathTemplate, post); } -- 2.51.2