From bf9f4b5961f0cdcf9863baf2911d8883ffdd860b Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 27 Nov 2025 11:22:19 +0800 Subject: [PATCH] style: fix import --- lib/routes/baselang/index.ts | 2 +- lib/routes/englishhome/index.ts | 2 +- lib/routes/hudsonrivertrading/index.ts | 2 +- lib/routes/huggingface/blog.ts | 2 +- lib/routes/huijin-inv/news.ts | 2 +- lib/routes/rss3/index.ts | 2 +- lib/routes/telegram/scripts/get-telegram-session.mjs | 3 ++- scripts/workflow/test-issue/call-maintainer.mjs | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/routes/baselang/index.ts b/lib/routes/baselang/index.ts index 3ca25a30a2..2dffe490d3 100644 --- a/lib/routes/baselang/index.ts +++ b/lib/routes/baselang/index.ts @@ -1,7 +1,7 @@ import type { Context } from 'hono'; import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type { type Data, Route } from '@/types'; +import type { Data, Route } from '@/types'; import logger from '@/utils/logger'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/englishhome/index.ts b/lib/routes/englishhome/index.ts index 6376fc793b..400a3ebd4c 100644 --- a/lib/routes/englishhome/index.ts +++ b/lib/routes/englishhome/index.ts @@ -1,4 +1,4 @@ -import type { type Data, Route } from '@/types'; +import type { Data, Route } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/hudsonrivertrading/index.ts b/lib/routes/hudsonrivertrading/index.ts index fad4ada47b..52e6e3c734 100644 --- a/lib/routes/hudsonrivertrading/index.ts +++ b/lib/routes/hudsonrivertrading/index.ts @@ -1,5 +1,5 @@ import InvalidParameterError from '@/errors/types/invalid-parameter'; -import type { type Data, Route } from '@/types'; +import type { Data, Route } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/huggingface/blog.ts b/lib/routes/huggingface/blog.ts index 868de48d4c..50fb158539 100644 --- a/lib/routes/huggingface/blog.ts +++ b/lib/routes/huggingface/blog.ts @@ -1,6 +1,6 @@ import { load } from 'cheerio'; -import type { type DataItem, Route } from '@/types'; +import type { DataItem, Route } from '@/types'; import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; diff --git a/lib/routes/huijin-inv/news.ts b/lib/routes/huijin-inv/news.ts index 73a12f261b..c4346679fa 100644 --- a/lib/routes/huijin-inv/news.ts +++ b/lib/routes/huijin-inv/news.ts @@ -1,6 +1,6 @@ import { type CheerioAPI, load } from 'cheerio'; -import type { type Data, type DataItem, Route } from '@/types'; +import type { Data, DataItem, Route } from '@/types'; import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; diff --git a/lib/routes/rss3/index.ts b/lib/routes/rss3/index.ts index 62235918af..817c6cd474 100644 --- a/lib/routes/rss3/index.ts +++ b/lib/routes/rss3/index.ts @@ -1,6 +1,6 @@ import { renderItemActionToHTML } from '@rss3/sdk'; -import type { type DataItem, Route } from '@/types'; +import type { DataItem, Route } from '@/types'; import { camelcaseKeys } from '@/utils/camelcase-keys'; import ofetch from '@/utils/ofetch'; diff --git a/lib/routes/telegram/scripts/get-telegram-session.mjs b/lib/routes/telegram/scripts/get-telegram-session.mjs index 1079a31176..1eae350134 100644 --- a/lib/routes/telegram/scripts/get-telegram-session.mjs +++ b/lib/routes/telegram/scripts/get-telegram-session.mjs @@ -1,6 +1,7 @@ +import readline from 'node:readline'; + import { TelegramClient } from 'telegram'; import { StringSession } from 'telegram/sessions/index.js'; -import readline from 'node:readline'; import winston from 'winston'; function userInput(question) { diff --git a/scripts/workflow/test-issue/call-maintainer.mjs b/scripts/workflow/test-issue/call-maintainer.mjs index 858b4bf9ac..d10b7110bf 100644 --- a/scripts/workflow/test-issue/call-maintainer.mjs +++ b/scripts/workflow/test-issue/call-maintainer.mjs @@ -1,5 +1,5 @@ -import { unified } from 'unified'; import remarkParse from 'remark-parse'; +import { unified } from 'unified'; // @TODO maybe we could use label or some other better ways to distinguish bug/feature issues const matchTitle = ['路由地址', 'Routes'];