From dcdeca56acb6c03d4868ece51ef4611e7598e270 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 8 Nov 2022 18:39:22 +0000 Subject: [ci] format --- examples/hackernews/src/components/Comment.astro | 2 +- examples/hackernews/src/components/For.astro | 16 +++++++++------- examples/hackernews/src/components/Nav.astro | 12 +++++++----- examples/hackernews/src/pages/users/[id].astro | 2 +- 4 files changed, 18 insertions(+), 14 deletions(-) (limited to 'examples/hackernews/src') diff --git a/examples/hackernews/src/components/Comment.astro b/examples/hackernews/src/components/Comment.astro index 50fa3e9e4..8327e666c 100644 --- a/examples/hackernews/src/components/Comment.astro +++ b/examples/hackernews/src/components/Comment.astro @@ -16,7 +16,7 @@ const { comment } = Astro.props; {comment.user}{' '} {comment.time_ago} ago -
+
{(comment: IComment) => } diff --git a/examples/hackernews/src/components/For.astro b/examples/hackernews/src/components/For.astro index b784f8f8a..885c22a65 100644 --- a/examples/hackernews/src/components/For.astro +++ b/examples/hackernews/src/components/For.astro @@ -8,13 +8,15 @@ export interface Props { const { each } = Astro.props; --- -{(async function* () { - for await (const value of each) { - let html = await Astro.slots.render('default', [value]); - yield ; - yield '\n'; - } -})()} +{ + (async function* () { + for await (const value of each) { + let html = await Astro.slots.render('default', [value]); + yield ; + yield '\n'; + } + })() +} diff --git a/examples/hackernews/src/components/Nav.astro b/examples/hackernews/src/components/Nav.astro index 10bf0f899..7eeba2865 100644 --- a/examples/hackernews/src/components/Nav.astro +++ b/examples/hackernews/src/components/Nav.astro @@ -15,11 +15,13 @@ const links: Link[] = [