fix(lint): resolve Biome errors and migrate config

- migrate biome.json to schema 2.5.10 (preset instead of recommended)
- apply safe fixes: formatting, import organization, unused imports/vars
- use node:crypto import protocol
- drop unused catch bindings
- a11y: associate labels with controls via htmlFor/id (add optional id to
  DatePicker), hide decorative SVGs from AT, and replace the custom
  role="checkbox" button with a native checkbox input
- remove unnecessary pageSize dependency from useMemo
This commit is contained in:
Jose Selesan
2026-10-14 12:44:07 -03:00
parent 0f62a13246
commit 15c77c07cf
27 changed files with 184 additions and 164 deletions

View File

@@ -1,4 +1,4 @@
import { useState } from "react";
import { useNavigate } from "@tanstack/react-router";
import {
ArrowDownToLine,
ArrowLeftRight,
@@ -7,7 +7,7 @@ import {
PencilLine,
Star,
} from "lucide-react";
import { useNavigate } from "@tanstack/react-router";
import { useState } from "react";
import { Button } from "@/components/ui/button";
import {
Tooltip,
@@ -17,10 +17,10 @@ import {
} from "@/components/ui/tooltip";
import type { Wallet } from "@/lib/api";
import { useSetDefaultWallet } from "@/lib/queries";
import { DepositDialog } from "./DepositDialog";
import { AdjustBalanceDialog } from "./AdjustBalanceDialog";
import { TransferDialog } from "./TransferDialog";
import { DepositDialog } from "./DepositDialog";
import { EditWalletDialog } from "./EditWalletDialog";
import { TransferDialog } from "./TransferDialog";
const balanceFormatter = new Intl.NumberFormat("es-AR", {
minimumFractionDigits: 2,
@@ -148,7 +148,10 @@ export function WalletCard({ wallet }: WalletCardProps) {
size="icon"
className="size-8"
onClick={() =>
navigate({ to: "/wallets/movements", search: { walletId: wallet.id } })
navigate({
to: "/wallets/movements",
search: { walletId: wallet.id },
})
}
>
<History className="size-4" />