From 2ddb9972ac552ef51b94daf0cd633afc09452f95 Mon Sep 17 00:00:00 2001 From: Austin Peterson Date: Fri, 18 Apr 2025 14:40:53 -0600 Subject: [PATCH 1/2] Update biome.json to auto fix ordering className --- biome.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/biome.json b/biome.json index 6a7fbd04f..f2a64ad45 100644 --- a/biome.json +++ b/biome.json @@ -48,7 +48,15 @@ }, "nursery": { "recommended": true, - "noProcessEnv": "error" + "noProcessEnv": "error", + "useSortedClasses": { + "level": "error", + "fix": "safe", + "options": { + "attributes": ["className"], + "functions": ["cn", "tw", "clsx", "twMerge"] + } + } } } }, From bb5b4abcb53fb82e125b19eca5abf3e2632575c6 Mon Sep 17 00:00:00 2001 From: Austin Peterson Date: Mon, 21 Apr 2025 19:14:40 -0600 Subject: [PATCH 2/2] update classNames to use tailwind className ordering --- .../language-switcher/LanguageSwitcher.tsx | 4 ++-- app/root.tsx | 10 +++++----- app/routes/$.tsx | 18 +++++++++--------- app/routes/_index.tsx | 18 +++++++++--------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/library/language-switcher/LanguageSwitcher.tsx b/app/library/language-switcher/LanguageSwitcher.tsx index 3602fba9b..4e030f811 100644 --- a/app/library/language-switcher/LanguageSwitcher.tsx +++ b/app/library/language-switcher/LanguageSwitcher.tsx @@ -8,10 +8,10 @@ const LanguageSwitcher = () => { const location = useLocation() return ( -
+
{supportedLanguages.map((language) => ( { - + {children} @@ -75,11 +75,11 @@ export const ErrorBoundary = () => { const errorStatusCode = statusCode() return ( -
+
-
-

{t(`error.${errorStatusCode}.title`)}

-

{t(`error.${errorStatusCode}.description`)}

+
+

{t(`error.${errorStatusCode}.title`)}

+

{t(`error.${errorStatusCode}.description`)}

diff --git a/app/routes/$.tsx b/app/routes/$.tsx index 32945290f..bba99ccfa 100644 --- a/app/routes/$.tsx +++ b/app/routes/$.tsx @@ -8,27 +8,27 @@ export default function Route404() { const { t } = useTranslation() const to = href("/") return ( -
-
+
+
- +
-

404

-

{t("error.404.title")}

-

{t("error.404.description")}

+

404

+

{t("error.404.title")}

+

{t("error.404.description")}

-
+
{t("navigation.home")} diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index d9b47d585..b98e7d40a 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -19,18 +19,18 @@ export default function Index({ loaderData }: Route.ComponentProps) { const { t } = useTranslation() return ( -