From f021eabab64490ebf0f39509642a7d86ad858af8 Mon Sep 17 00:00:00 2001
From: 苏向夜 <fu050409@163.com>
Date: Thu, 26 Mar 2026 08:07:22 +0800
Subject: chore(lint): partial apply docs code lint

---
 packages/docs/app/routes/docs.tsx | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

(limited to 'packages/docs/app/routes/docs.tsx')

diff --git a/packages/docs/app/routes/docs.tsx b/packages/docs/app/routes/docs.tsx
index 5090ccf..382a4e5 100644
--- a/packages/docs/app/routes/docs.tsx
+++ b/packages/docs/app/routes/docs.tsx
@@ -1,16 +1,15 @@
-import type { Route } from './+types/docs';
-import { redirect } from 'react-router';
-
-import { i18n } from '@/lib/i18n';
+import { redirect } from "react-router";
+import { i18n } from "@/lib/i18n";
+import type { Route } from "./+types/docs";
 
 export function loader({ params }: Route.LoaderArgs) {
   const lang = params.lang as string | undefined;
-  
+
   // 如果没有语言参数或是默认语言，重定向到 /docs/manual/getting-started
   if (!lang || lang === i18n.defaultLanguage) {
-    return redirect('/docs/manual/getting-started');
+    return redirect("/docs/manual/getting-started");
   }
-  
+
   // 其他语言重定向到 /:lang/docs/manual/getting-started
   return redirect(`/${lang}/docs/manual/getting-started`);
 }
-- 
cgit v1.2.3-70-g09d2

