From 1c7643873b93f6fd8aad5a4abac0a8fce999a9cf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 07:37:35 +0000 Subject: [PATCH] style: auto format --- lib/routes/cherrytimes/market.ts | 24 +++++++++++++----------- lib/routes/cherrytimes/namespace.ts | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/routes/cherrytimes/market.ts b/lib/routes/cherrytimes/market.ts index 5759ef64a..121be3e0b 100644 --- a/lib/routes/cherrytimes/market.ts +++ b/lib/routes/cherrytimes/market.ts @@ -10,19 +10,21 @@ export const route: Route = { maintainers: ['canonnizq'], handler: async () => { - const response = await ofetch("https://cherrytimes.it/en/tag/markets?page=1"); + const response = await ofetch('https://cherrytimes.it/en/tag/markets?page=1'); const $ = load(response); - const items = $('div.post-container').toArray().map((item) => { - const element = $(item); - const a = element.find('a').eq(1); + const items = $('div.post-container') + .toArray() + .map((item) => { + const element = $(item); + const a = element.find('a').eq(1); - return { - title: a.text(), - link: a.attr('href'), - description: element.find('p.excerpt').text(), - category: element.find('a').last().text(), - }; - }); + return { + title: a.text(), + link: a.attr('href'), + description: element.find('p.excerpt').text(), + category: element.find('a').last().text(), + }; + }); return { title: 'Cherry Times - Market', diff --git a/lib/routes/cherrytimes/namespace.ts b/lib/routes/cherrytimes/namespace.ts index 0550a1245..addabe52c 100644 --- a/lib/routes/cherrytimes/namespace.ts +++ b/lib/routes/cherrytimes/namespace.ts @@ -3,4 +3,4 @@ import type { Namespace } from '@/types'; export const namespace: Namespace = { name: 'Cherry Times', url: 'cherrytimes.it', -}; \ No newline at end of file +};