From 6733188b2096d46a076e02156f5e97f617dd3106 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Wed, 7 May 2025 17:15:47 -0400 Subject: [PATCH] fix: update ignore pattern in biome.json and format imports in TransactionTable.astro --- biome.json | 2 +- src/components/TransactionTable.astro | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/biome.json b/biome.json index 491fb0e..434810c 100644 --- a/biome.json +++ b/biome.json @@ -39,7 +39,7 @@ } }, "files": { - "ignore": ["dist", "node_modules", ".astro", "coverage"] + "ignore": ["dist", "node_modules", "**/*.astro", "coverage"] }, "vcs": { "enabled": true, diff --git a/src/components/TransactionTable.astro b/src/components/TransactionTable.astro index 5f516f4..3060153 100644 --- a/src/components/TransactionTable.astro +++ b/src/components/TransactionTable.astro @@ -1,15 +1,16 @@ --- -import type { Transaction } from '@types'; +import type { Transaction } from "@types"; +import { formatDate, formatCurrency } from "@utils"; interface Props { - transactions: Transaction[]; + transactions: Transaction[]; } const { transactions } = Astro.props; // Sort transactions by date descending for display const sortedTransactions = [...transactions].sort( - (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime(), + (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime(), ); // TODO: UI/UX Improvements