chore: lint
a1b46adf
2 file(s) · +7 −7
| 3 | 3 | import * as path from "node:path"; |
|
| 4 | 4 | import { command, positional, string } from "cmd-ts"; |
|
| 5 | 5 | import { intro, outro, text, spinner, log, note } from "@clack/prompts"; |
|
| 6 | - | import { fileURLToPath } from "url"; |
|
| 7 | - | import { dirname } from "path"; |
|
| 6 | + | import { fileURLToPath } from "node:url"; |
|
| 7 | + | import { dirname } from "node:path"; |
|
| 8 | 8 | import { findConfig, loadConfig } from "../lib/config"; |
|
| 9 | 9 | import type { PublisherConfig } from "../lib/types"; |
|
| 10 | 10 | ||
| 83 | 83 | await fs.writeFile( |
|
| 84 | 84 | configPath, |
|
| 85 | 85 | JSON.stringify(existingConfig, null, 2), |
|
| 86 | - | "utf-8" |
|
| 86 | + | "utf-8", |
|
| 87 | 87 | ); |
|
| 88 | 88 | s.stop("Updated sequoia.json with UI configuration"); |
|
| 89 | 89 | } catch (error) { |
|
| 100 | 100 | await fs.writeFile( |
|
| 101 | 101 | path.join(process.cwd(), "sequoia.json"), |
|
| 102 | 102 | JSON.stringify(minimalConfig, null, 2), |
|
| 103 | - | "utf-8" |
|
| 103 | + | "utf-8", |
|
| 104 | 104 | ); |
|
| 105 | 105 | s.stop("Created sequoia.json with UI configuration"); |
|
| 106 | 106 | } |
|
| 149 | 149 | `<${componentName}></${componentName}>\n\n` + |
|
| 150 | 150 | `The component will automatically read the document URI from:\n` + |
|
| 151 | 151 | `<link rel="site.standard.document" href="at://...">`, |
|
| 152 | - | "Usage" |
|
| 152 | + | "Usage", |
|
| 153 | 153 | ); |
|
| 154 | 154 | ||
| 155 | 155 | outro(`${componentName} added successfully!`); |
|
| 800 | 800 | * Render a single comment |
|
| 801 | 801 | * @param {any} post - Post data |
|
| 802 | 802 | * @param {boolean} showThreadLine - Whether to show the connecting thread line |
|
| 803 | - | * @param {number} index - Index in the flattened thread (0 = top-level) |
|
| 803 | + | * @param {number} _index - Index in the flattened thread (0 = top-level) |
|
| 804 | 804 | */ |
|
| 805 | - | renderComment(post, showThreadLine = false, index = 0) { |
|
| 805 | + | renderComment(post, showThreadLine = false, _index = 0) { |
|
| 806 | 806 | const author = post.author; |
|
| 807 | 807 | const displayName = author.displayName || author.handle; |
|
| 808 | 808 | const avatarHtml = author.avatar |