chore: replace oxlint with biome for linting

This commit is contained in:
Jose Selesan
2026-10-15 15:30:22 -03:00
parent 2b1d2152c4
commit bd519e7082
43 changed files with 633 additions and 793 deletions

View File

@@ -27,7 +27,12 @@ function DashboardPage() {
<div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
<StatCard title="Users" value="2,481" description="+12% vs last month" icon={UsersIcon} />
<StatCard title="Active lists" value="318" description="+4 this week" icon={ActivityIcon} />
<StatCard title="Tasks done" value="9,204" description="+18% vs last month" icon={CircleCheckIcon} />
<StatCard
title="Tasks done"
value="9,204"
description="+18% vs last month"
icon={CircleCheckIcon}
/>
<ApiStatusCard />
</div>
@@ -143,7 +148,9 @@ function ApiStatusCard() {
<Badge variant="destructive">offline</Badge>
</div>
<p className="text-muted-foreground truncate text-xs">
{error instanceof ApiError ? (error.problem.detail ?? error.message) : 'API unreachable'}
{error instanceof ApiError
? (error.problem.detail ?? error.message)
: 'API unreachable'}
</p>
</>
)}

View File

@@ -57,7 +57,12 @@ function SettingsPage() {
<Field data-invalid={!!form.formState.errors.email}>
<FieldLabel htmlFor="email">Email</FieldLabel>
<Input id="email" type="email" placeholder="ada@example.com" {...form.register('email')} />
<Input
id="email"
type="email"
placeholder="ada@example.com"
{...form.register('email')}
/>
<FieldDescription>We only use it to sign you in.</FieldDescription>
<FieldError errors={[form.formState.errors.email]} />
</Field>

View File

@@ -1,8 +1,4 @@
import {
createColumnHelper,
tableFeatures,
useTable,
} from '@tanstack/react-table'
import { createColumnHelper, tableFeatures, useTable } from '@tanstack/react-table'
import { createFileRoute } from '@tanstack/react-router'
import { SearchIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
@@ -102,7 +98,10 @@ function TasksPage() {
<TableBody>
{table.getRowModel().rows.length === 0 && (
<TableRow>
<TableCell colSpan={columns.length} className="text-muted-foreground h-24 text-center">
<TableCell
colSpan={columns.length}
className="text-muted-foreground h-24 text-center"
>
No tasks match your filter.
</TableCell>
</TableRow>