From 608937285596d9ff8030df219bc279e1ae107742 Mon Sep 17 00:00:00 2001 From: delucis Date: Wed, 27 Sep 2023 11:19:40 +0000 Subject: [ci] format --- packages/starlight/utils/routing.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/starlight/utils/routing.ts b/packages/starlight/utils/routing.ts index 6af940c8..496578ce 100644 --- a/packages/starlight/utils/routing.ts +++ b/packages/starlight/utils/routing.ts @@ -35,10 +35,12 @@ interface Path extends GetStaticPathsItem { const normalizeIndexSlug = (slug: string) => (slug === 'index' ? '' : slug); /** All entries in the docs content collection. */ - const docs: StarlightDocsEntry[] = (await getCollection('docs') ?? []).map(({ slug, ...entry }) => ({ - ...entry, - slug: normalizeIndexSlug(slug), -})); +const docs: StarlightDocsEntry[] = ((await getCollection('docs')) ?? []).map( + ({ slug, ...entry }) => ({ + ...entry, + slug: normalizeIndexSlug(slug), + }) +); function getRoutes(): Route[] { const routes: Route[] = docs.map((entry) => ({ -- cgit