From c756d86d1ab54e5ad220e8a65f028587dd6bc3a5 Mon Sep 17 00:00:00 2001 From: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:22:04 -0600 Subject: [PATCH] lint --- docs/reference/objects.mdx | 2 +- src/lib/code-examples.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/reference/objects.mdx b/docs/reference/objects.mdx index 50132a9..d10fc0a 100644 --- a/docs/reference/objects.mdx +++ b/docs/reference/objects.mdx @@ -972,7 +972,7 @@ The merkle root of the outgoing messages back to the data availability (DA) laye `eventInboxRoot`: [`Bytes32!`](/docs/reference/scalars/#bytes32) -The merkle root of the incoming events from the data availability (DA) layer to Fuel, where the tree inputs are the hashes of these events. +The merkle root of the incoming events from the data availability (DA) layer to Fuel, where the tree inputs are the hashes of these events. `height`: [`U32!`](/docs/reference/scalars/#u32) diff --git a/src/lib/code-examples.ts b/src/lib/code-examples.ts index 7c5970a..8ad26b1 100644 --- a/src/lib/code-examples.ts +++ b/src/lib/code-examples.ts @@ -35,7 +35,10 @@ function extractLines( } else { end = lines.length; } - return lines.slice(start - 1, end).join('\n').replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`); + return lines + .slice(start - 1, end) + .join('\n') + .replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`); } function getLineOffsets(str: string) { @@ -64,7 +67,10 @@ function extractTestCase(source: string, testCase: string) { if (val && val === testCase) { const body = args[1]?.body; content = chars.slice(body.start, body.end).join('').slice(1, -1); - content = prettier.format(content, { parser: 'babel' }).trimEnd().replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`); + content = prettier + .format(content, { parser: 'babel' }) + .trimEnd() + .replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`); charStart = body.start; charEnd = body.end; }