Skip to content

Commit 3309658

Browse files
committed
chore: apply biome formatting
1 parent b89b8b3 commit 3309658

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

apps/web/src/components/Sidebar.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ const NAV_SECTIONS = [
1111
title: "WordprocessingML",
1212
items: [
1313
{ to: "/docs/paragraphs", label: "Paragraphs", path: "paragraphs" },
14-
{ to: "/docs/paragraph-borders", label: "Paragraph Borders", path: "paragraph-borders", isNew: true },
14+
{
15+
to: "/docs/paragraph-borders",
16+
label: "Paragraph Borders",
17+
path: "paragraph-borders",
18+
isNew: true,
19+
},
1520
{ to: "/docs/tables", label: "Tables", path: "tables" },
1621
{ to: "/docs/styles", label: "Styles", path: "styles", disabled: true },
1722
],
@@ -68,7 +73,7 @@ export function Sidebar({ onSearchClick }: SidebarProps) {
6873
label={item.label}
6974
active={currentPath === item.path}
7075
disabled={item.disabled}
71-
isNew={item.isNew}
76+
isNew={item.isNew}
7277
/>
7378
))}
7479
</ul>

apps/web/src/data/docs.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Each border element has:
413413
type: "note",
414414
noteType: "warning",
415415
title: "The space attribute and unit mismatch",
416-
text: 'The `space` attribute sets the distance (in points) between a border\'s inner edge and the text. For between borders, this padding applies on both sides — above and below. Note that `sz` uses a different unit: eighths of a point (`sz="12"` = 1.5pt). Easy to mix up since they\'re on the same element.',
416+
text: "The `space` attribute sets the distance (in points) between a border's inner edge and the text. For between borders, this padding applies on both sides — above and below. Note that `sz` uses a different unit: eighths of a point (`sz=\"12\"` = 1.5pt). Easy to mix up since they're on the same element.",
417417
app: "Word",
418418
},
419419
{ type: "heading", level: 2, text: "Schema" },
@@ -433,7 +433,11 @@ Each border element has:
433433
type: "table",
434434
headers: ["Attribute", "Type", "Description"],
435435
rows: [
436-
["`w:val`", "ST_Border", "Border style — single, double, dashed, dotted, nil, none, etc."],
436+
[
437+
"`w:val`",
438+
"ST_Border",
439+
"Border style — single, double, dashed, dotted, nil, none, etc.",
440+
],
437441
["`w:sz`", "integer", "Width in 1/8 of a point (e.g., 12 = 1.5pt)"],
438442
["`w:space`", "integer", "Distance from text to border inner edge, in points"],
439443
["`w:color`", "hex", "Border color (e.g., 000000, auto)"],

apps/web/src/pages/SpecExplorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function SpecExplorer() {
108108
const params = new URLSearchParams({ id: initialSection });
109109
if (initialPart) params.set("part", initialPart);
110110
const res = await fetch(`${import.meta.env.VITE_API_URL}/section?${params}`);
111-
const data = await res.json() as { results: MCPSearchResult[] };
111+
const data = (await res.json()) as { results: MCPSearchResult[] };
112112

113113
const transformed: SpecSearchResult[] = (data.results || []).map((r: MCPSearchResult) => ({
114114
id: `spec-${r.id}`,

0 commit comments

Comments
 (0)