From 3e6155ffeff2916e2c463b5ef759242c8c2146fb Mon Sep 17 00:00:00 2001 From: Shintaro Jokagi Date: Thu, 15 May 2025 23:10:31 +1200 Subject: [PATCH] chore(biome): update config and fix issues --- biome.json | 6 +---- package.json | 4 +-- src/components/ModsList.tsx | 50 ++++++++++++++++++------------------- tailwind.config.mjs | 13 ++++++---- 4 files changed, 35 insertions(+), 38 deletions(-) diff --git a/biome.json b/biome.json index a47fe1a..1f2f33b 100644 --- a/biome.json +++ b/biome.json @@ -20,11 +20,7 @@ "useEditorconfig": true }, "files": { - "ignore": [ - "node_modules", - ".git", - "dist" - ] + "ignore": ["node_modules", ".git", "dist"] }, "javascript": { "formatter": { diff --git a/package.json b/package.json index 06bc126..79a587d 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,6 @@ "wrangler": "^3.94.0" }, "lint-staged": { - "src/**/*.{ts,tsx,astro,js,jsx}": [ - "biome check --write ./src" - ] + "src/**/*.{ts,tsx,astro,js,jsx}": ["biome check --write ./src"] } } diff --git a/src/components/ModsList.tsx b/src/components/ModsList.tsx index 5fcf584..7629732 100644 --- a/src/components/ModsList.tsx +++ b/src/components/ModsList.tsx @@ -89,36 +89,36 @@ export default function ModsList({ allMods, locale }: ModsListProps) { return (
-
+ {mods.pagination.pagination.split('{input}').map((value, index) => { if (index === 0) { return ( ) } return ( - + {value.replace('{totalPages}', totalPages.toString()).replace('{totalItems}', totalItems.toString())} ) })} @@ -131,21 +131,21 @@ export default function ModsList({ allMods, locale }: ModsListProps) {