diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 3101033..59c3c25 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -3,8 +3,8 @@ import { existsSync } from "node:fs"; import * as path from "node:path"; import { command, positional, string } from "cmd-ts"; import { intro, outro, text, spinner, log, note } from "@clack/prompts"; -import { fileURLToPath } from "url"; -import { dirname } from "path"; +import { fileURLToPath } from "node:url"; +import { dirname } from "node:path"; import { findConfig, loadConfig } from "../lib/config"; import type { PublisherConfig } from "../lib/types"; @@ -83,7 +83,7 @@ export const addCommand = command({ await fs.writeFile( configPath, JSON.stringify(existingConfig, null, 2), - "utf-8" + "utf-8", ); s.stop("Updated sequoia.json with UI configuration"); } catch (error) { @@ -100,7 +100,7 @@ export const addCommand = command({ await fs.writeFile( path.join(process.cwd(), "sequoia.json"), JSON.stringify(minimalConfig, null, 2), - "utf-8" + "utf-8", ); s.stop("Created sequoia.json with UI configuration"); } @@ -149,7 +149,7 @@ export const addCommand = command({ `<${componentName}>\n\n` + `The component will automatically read the document URI from:\n` + ``, - "Usage" + "Usage", ); outro(`${componentName} added successfully!`); diff --git a/packages/cli/src/components/sequoia-comments.js b/packages/cli/src/components/sequoia-comments.js index c03ce78..5110d0b 100644 --- a/packages/cli/src/components/sequoia-comments.js +++ b/packages/cli/src/components/sequoia-comments.js @@ -800,9 +800,9 @@ class SequoiaComments extends BaseElement { * Render a single comment * @param {any} post - Post data * @param {boolean} showThreadLine - Whether to show the connecting thread line - * @param {number} index - Index in the flattened thread (0 = top-level) + * @param {number} _index - Index in the flattened thread (0 = top-level) */ - renderComment(post, showThreadLine = false, index = 0) { + renderComment(post, showThreadLine = false, _index = 0) { const author = post.author; const displayName = author.displayName || author.handle; const avatarHtml = author.avatar