From 4544a7a5fa9db61d721abf3efcdb3b0180a65ac5 Mon Sep 17 00:00:00 2001 From: Derian <59376626+derianrddev@users.noreply.github.com> Date: Mon, 10 Feb 2025 20:10:59 -0600 Subject: [PATCH] chore: update biome config (#142) --- apps/frontend/app/not-found.tsx | 12 ++--- .../marketplace/products-not-found.tsx | 44 +++++++++--------- .../components/products/not-found.tsx | 24 +++++----- apps/frontend/components/shared/not-found.tsx | 46 +++++++++---------- biome.json | 2 +- 5 files changed, 64 insertions(+), 64 deletions(-) diff --git a/apps/frontend/app/not-found.tsx b/apps/frontend/app/not-found.tsx index 79416d8..d6b0b3d 100644 --- a/apps/frontend/app/not-found.tsx +++ b/apps/frontend/app/not-found.tsx @@ -1,12 +1,12 @@ import NotFound from "@/components/shared/not-found"; const GlobalNotFound = () => { - return ( - - ); + return ( + + ); }; export default GlobalNotFound; diff --git a/apps/frontend/components/marketplace/products-not-found.tsx b/apps/frontend/components/marketplace/products-not-found.tsx index 5a10a77..9d23b5e 100644 --- a/apps/frontend/components/marketplace/products-not-found.tsx +++ b/apps/frontend/components/marketplace/products-not-found.tsx @@ -3,36 +3,36 @@ import { useTranslations } from "@/hooks/useTranslations"; import { PackageSearch } from "lucide-react"; import React, { type Dispatch, type SetStateAction } from "react"; -import { Button } from "../ui/button"; import NotFound from "../shared/not-found"; +import { Button } from "../ui/button"; type ProductsNotFoundProps = { - setPriceRange: Dispatch>; - setSelectedCategories: Dispatch>; + setPriceRange: Dispatch>; + setSelectedCategories: Dispatch>; }; export default function ProductsNotFound({ - setPriceRange, - setSelectedCategories, + setPriceRange, + setSelectedCategories, }: ProductsNotFoundProps) { - const { t } = useTranslations(); + const { t } = useTranslations(); - const clearFilters = () => { - setPriceRange([0, 1500]); - setSelectedCategories([]); - }; + const clearFilters = () => { + setPriceRange([0, 1500]); + setSelectedCategories([]); + }; - return ( - - + return ( + + - - {t("common.noProducts.clearFilters")} - - - ); + + {t("common.noProducts.clearFilters")} + + + ); } diff --git a/apps/frontend/components/products/not-found.tsx b/apps/frontend/components/products/not-found.tsx index 26f18f7..85e9e1f 100644 --- a/apps/frontend/components/products/not-found.tsx +++ b/apps/frontend/components/products/not-found.tsx @@ -1,21 +1,21 @@ "use client"; -import { PackageX } from "lucide-react"; import { useTranslations } from "@/hooks/useTranslations"; -import NotFound from "../shared/not-found"; +import { PackageX } from "lucide-react"; +import NotFound from "../shared/not-found"; const ProductNotFound = () => { - const { t } = useTranslations(); + const { t } = useTranslations(); - return ( - <> - - > - ); + return ( + <> + + > + ); }; export default ProductNotFound; diff --git a/apps/frontend/components/shared/not-found.tsx b/apps/frontend/components/shared/not-found.tsx index 6ef927f..cb621c3 100644 --- a/apps/frontend/components/shared/not-found.tsx +++ b/apps/frontend/components/shared/not-found.tsx @@ -5,33 +5,33 @@ import Link from "next/link"; import { Button } from "../ui/button"; type NotFoundProps = { - icon?: React.ElementType; - title: string; - description: string; + icon?: React.ElementType; + title: string; + description: string; }; const NotFound = ({ - icon: Icon = AlertCircle, - title, - description, + icon: Icon = AlertCircle, + title, + description, }: NotFoundProps) => { - return ( - - - {title} - - {description} - - - - Browse Marketplace - - - Go Home - - - - ); + return ( + + + {title} + + {description} + + + + Browse Marketplace + + + Go Home + + + + ); }; export default NotFound; diff --git a/biome.json b/biome.json index e55f735..86e9797 100644 --- a/biome.json +++ b/biome.json @@ -19,7 +19,7 @@ }, "linter": { "enabled": true, - "ignore": ["./components/ui/**"], + "ignore": ["./components/ui/**", "./hooks/use-toast.ts"], "rules": { "recommended": true, "style": {
- {description} -
+ {description} +