diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..37b0034
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,53 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+env:
+ # Prisma needs a connection string to generate the client; no database is
+ # contacted during lint, typecheck, test or build.
+ DATABASE_URL: postgresql://postgres:postgres@localhost:5432/superlist?schema=public
+ BETTER_AUTH_SECRET: ci-only-secret-not-used-at-build-time
+ BETTER_AUTH_URL: http://localhost:4100
+ CORS_ORIGIN: http://localhost:7153
+ VITE_API_URL: http://localhost:4100
+
+jobs:
+ verify:
+ name: Verify
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: oven-sh/setup-bun@v2
+ with:
+ bun-version: 1.4.0
+
+ # The Prisma CLI runs on Node.
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+
+ - name: Install dependencies
+ run: bun install --frozen-lockfile
+
+ - name: Generate Prisma client
+ run: bun run db:generate
+
+ - name: Lint and format check
+ run: bun run lint:ci
+
+ - name: Typecheck
+ run: bun run typecheck
+
+ - name: Test
+ run: bun run test
+
+ - name: Build
+ run: bun run build
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index f47e836..0000000
--- a/.prettierignore
+++ /dev/null
@@ -1,8 +0,0 @@
-node_modules
-dist
-coverage
-.turbo
-bun.lock
-bun.lockb
-apps/web/src/routeTree.gen.ts
-apps/api/src/generated
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index c03d068..0000000
--- a/.prettierrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "semi": false,
- "singleQuote": true,
- "trailingComma": "all",
- "printWidth": 100,
- "tabWidth": 2
-}
diff --git a/AGENTS.md b/AGENTS.md
index d72c7cd..632e2d4 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -25,12 +25,17 @@ No CI, no database migrations and no product features yet.
- Verification commands, run from the repo root:
- `bun run build`
- `bun run lint` → `bun run typecheck` → `bun run test` (in that order)
-- **Lint with Biome** (`biome.json` at the repo root, one config for every workspace): `bun run lint`
- (per-package via turbo), `bun run lint:fix` (apply safe fixes), `bun run lint:ci` (whole repo, for CI).
-- **Format with Prettier** (`bun run format`). Biome's formatter and assist are deliberately disabled in
- `biome.json` so the two tools never fight each other.
-- `apps/web/src/components/ui/**` is excluded from Biome's recommended preset through an `overrides` entry:
- those files are vendored shadcn/ui source and get regenerated by the CLI.
+- **Biome is the only JS/TS tooling: linting, formatting and import sorting.** One `biome.json` at the repo
+ root applies to every workspace.
+ - `bun run lint` → `biome check .` per package through turbo, so it also fails on formatting drift.
+ - `bun run lint:fix` → `biome check --write .` applies lint fixes, formatting and `organizeImports` across
+ the whole repo.
+ - `bun run lint:ci` → `biome ci .` is the whole-repo check used by CI.
+ - `bun run format` / `bun run format:check` are formatting-only.
+- Markdown (`README.md`, `AGENTS.md`) is not covered: Biome does not format prose.
+- `apps/web/src/components/ui/**` is excluded from Biome's recommended lint preset through an `overrides` entry:
+ those files are vendored shadcn/ui source regenerated by the CLI. They are still formatted.
+- CI (`.github/workflows/ci.yml`) runs `db:generate` → `lint:ci` → `typecheck` → `test` → `build`.
- Generated files are gitignored and must never be edited by hand: `apps/web/src/routeTree.gen.ts`,
`apps/api/src/generated/`.
@@ -126,7 +131,7 @@ apps/web/src/
- `cn` comes from the `cn` package; `src/lib/utils.ts` re-exports it for local imports.
- Prefer small feature components over one large route file.
- Biome does not flag the `Route` export of route files, so route files stay clean; only the vendored
- `components/ui` files are exempted from the recommended preset.
+ `components/ui` files are exempted from the recommended lint preset.
diff --git a/README.md b/README.md
index 34d6dfa..b97f51d 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ cp apps/web/.env.example apps/web/.env
Run everything in parallel:
```bash
-bun run dev # turbo run dev → api on :3000, web on :5173
+bun run dev # turbo run dev → api on :4100, web on :7153
```
Or a single workspace: `bun run dev --filter=@superlist/web`.
@@ -41,21 +41,24 @@ Or a single workspace: `bun run dev --filter=@superlist/web`.
```bash
bun run build # turbo run build
-bun run lint # biome check (per package)
+bun run lint # biome check per package (lint + format + import order)
bun run typecheck # tsc
bun run test # bun test (api) / vitest (web, shared)
```
+CI (`.github/workflows/ci.yml`) runs `db:generate` → `lint:ci` → `typecheck` → `test` → `build` on every push
+to `main` and every pull request.
+
## Useful scripts
-| Command | Effect |
-| --------------------- | ---------------------------------------------------------- |
-| `bun run lint:fix` | Apply Biome's safe fixes across the repo |
-| `bun run lint:ci` | `biome ci` — lint the whole repo exactly as CI would |
-| `bun run format` | Format the repo with Prettier |
-| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
-| `bun run db:migrate` | Create and apply a migration (development) |
-| `bun run db:studio` | Open Prisma Studio |
+| Command | Effect |
+| --------------------- | ------------------------------------------------------------------- |
+| `bun run lint:fix` | Apply Biome fixes: lint, formatting and import sorting (whole repo) |
+| `bun run lint:ci` | `biome ci` — check the whole repo exactly as CI does |
+| `bun run format` | Format with Biome (`format:check` to verify only) |
+| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
+| `bun run db:migrate` | Create and apply a migration (development) |
+| `bun run db:studio` | Open Prisma Studio |
## Auth
diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts
index d4525ad..4e501d9 100644
--- a/apps/api/src/app.ts
+++ b/apps/api/src/app.ts
@@ -1,5 +1,5 @@
-import { cors } from 'hono/cors'
import { Hono } from 'hono'
+import { cors } from 'hono/cors'
import { requestId } from 'hono/request-id'
import { secureHeaders } from 'hono/secure-headers'
@@ -9,7 +9,7 @@ import { errorHandler, notFoundHandler } from '@/lib/problem-details'
import { healthModule } from '@/modules/health'
import type { AppEnv } from '@/types'
-const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:5173')
+const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:7153')
.split(',')
.map((origin) => origin.trim())
.filter(Boolean)
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index a52a442..83c801b 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -1,7 +1,7 @@
import { createApp } from '@/app'
import { logger } from '@/lib/logger'
-const port = Number(process.env.PORT ?? 3000)
+const port = Number(process.env.PORT ?? 4100)
const app = createApp()
diff --git a/apps/api/src/lib/problem-details.ts b/apps/api/src/lib/problem-details.ts
index 9c831da..067dcd3 100644
--- a/apps/api/src/lib/problem-details.ts
+++ b/apps/api/src/lib/problem-details.ts
@@ -1,4 +1,4 @@
-import { problem, problemTypes, type ProblemDetails } from '@superlist/shared'
+import { type ProblemDetails, problem, problemTypes } from '@superlist/shared'
import type { Context } from 'hono'
import { HTTPException } from 'hono/http-exception'
diff --git a/apps/api/src/lib/result-json.ts b/apps/api/src/lib/result-json.ts
index ab4d502..555177c 100644
--- a/apps/api/src/lib/result-json.ts
+++ b/apps/api/src/lib/result-json.ts
@@ -1,4 +1,4 @@
-import { problem, type ProblemDetails, type Result } from '@superlist/shared'
+import { type ProblemDetails, problem, type Result } from '@superlist/shared'
import type { Context } from 'hono'
import { problemResponse } from '@/lib/problem-details'
diff --git a/apps/api/src/lib/validate.ts b/apps/api/src/lib/validate.ts
index bdb002e..becd518 100644
--- a/apps/api/src/lib/validate.ts
+++ b/apps/api/src/lib/validate.ts
@@ -1,5 +1,5 @@
-import { zValidator, type Hook } from '@hono/zod-validator'
-import { problems, type FieldErrors } from '@superlist/shared'
+import { type Hook, zValidator } from '@hono/zod-validator'
+import { type FieldErrors, problems } from '@superlist/shared'
import type { Context, Env, ValidationTargets } from 'hono'
import type { ZodError, ZodType } from 'zod'
diff --git a/apps/api/src/modules/health/get-status/use-case.ts b/apps/api/src/modules/health/get-status/use-case.ts
index 6fb8221..f926761 100644
--- a/apps/api/src/modules/health/get-status/use-case.ts
+++ b/apps/api/src/modules/health/get-status/use-case.ts
@@ -1,4 +1,4 @@
-import { Ok, type Result, type ProblemDetails } from '@superlist/shared'
+import { Ok, type ProblemDetails, type Result } from '@superlist/shared'
export type HealthStatus = {
status: 'ok'
diff --git a/apps/web/src/components/layout/app-header.tsx b/apps/web/src/components/layout/app-header.tsx
index 708bebf..5773a5d 100644
--- a/apps/web/src/components/layout/app-header.tsx
+++ b/apps/web/src/components/layout/app-header.tsx
@@ -1,9 +1,8 @@
import { useRouterState } from '@tanstack/react-router'
import { SearchIcon } from 'lucide-react'
-
+import { ThemeToggle } from '@/components/theme-toggle'
import { Separator } from '@/components/ui/separator'
import { SidebarTrigger } from '@/components/ui/sidebar'
-import { ThemeToggle } from '@/components/theme-toggle'
function usePageTitle() {
const pathname = useRouterState({ select: (state) => state.location.pathname })
diff --git a/apps/web/src/components/layout/app-sidebar.tsx b/apps/web/src/components/layout/app-sidebar.tsx
index 562dfbd..d1aa050 100644
--- a/apps/web/src/components/layout/app-sidebar.tsx
+++ b/apps/web/src/components/layout/app-sidebar.tsx
@@ -1,6 +1,6 @@
import { Link, useRouterState } from '@tanstack/react-router'
-import { LayoutDashboardIcon, ListTodoIcon, SettingsIcon } from 'lucide-react'
import type { LucideIcon } from 'lucide-react'
+import { LayoutDashboardIcon, ListTodoIcon, SettingsIcon } from 'lucide-react'
import { NavUser } from '@/components/layout/nav-user'
import {
diff --git a/apps/web/src/components/ui/alert.tsx b/apps/web/src/components/ui/alert.tsx
index b232628..b357560 100644
--- a/apps/web/src/components/ui/alert.tsx
+++ b/apps/web/src/components/ui/alert.tsx
@@ -1,6 +1,6 @@
-import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
+import * as React from 'react'
const alertVariants = cva(
"group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
@@ -65,4 +65,4 @@ function AlertAction({ className, ...props }: React.ComponentProps<'div'>) {
)
}
-export { Alert, AlertTitle, AlertDescription, AlertAction }
+export { Alert, AlertAction, AlertDescription, AlertTitle }
diff --git a/apps/web/src/components/ui/avatar.tsx b/apps/web/src/components/ui/avatar.tsx
index 5a3cf8f..21b4d44 100644
--- a/apps/web/src/components/ui/avatar.tsx
+++ b/apps/web/src/components/ui/avatar.tsx
@@ -1,6 +1,6 @@
-import * as React from 'react'
import { cn } from 'cn'
import { Avatar as AvatarPrimitive } from 'radix-ui'
+import * as React from 'react'
function Avatar({
className,
@@ -90,4 +90,4 @@ function AvatarGroupCount({ className, ...props }: React.ComponentProps<'div'>)
)
}
-export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge }
+export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage }
diff --git a/apps/web/src/components/ui/badge.tsx b/apps/web/src/components/ui/badge.tsx
index bae30bb..240234c 100644
--- a/apps/web/src/components/ui/badge.tsx
+++ b/apps/web/src/components/ui/badge.tsx
@@ -1,7 +1,7 @@
-import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
import { Slot } from 'radix-ui'
+import * as React from 'react'
const badgeVariants = cva(
'group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!',
diff --git a/apps/web/src/components/ui/breadcrumb.tsx b/apps/web/src/components/ui/breadcrumb.tsx
index aff707a..c113b29 100644
--- a/apps/web/src/components/ui/breadcrumb.tsx
+++ b/apps/web/src/components/ui/breadcrumb.tsx
@@ -1,7 +1,7 @@
-import * as React from 'react'
import { cn } from 'cn'
-import { Slot } from 'radix-ui'
import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react'
+import { Slot } from 'radix-ui'
+import * as React from 'react'
function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
return
@@ -92,10 +92,10 @@ function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'
export {
Breadcrumb,
- BreadcrumbList,
+ BreadcrumbEllipsis,
BreadcrumbItem,
BreadcrumbLink,
+ BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
- BreadcrumbEllipsis,
}
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index eac28e5..7a06213 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -1,7 +1,7 @@
-import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
import { Slot } from 'radix-ui'
+import * as React from 'react'
const buttonVariants = cva(
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
diff --git a/apps/web/src/components/ui/card.tsx b/apps/web/src/components/ui/card.tsx
index 8010ead..ce8b0f1 100644
--- a/apps/web/src/components/ui/card.tsx
+++ b/apps/web/src/components/ui/card.tsx
@@ -1,5 +1,5 @@
-import * as React from 'react'
import { cn } from 'cn'
+import * as React from 'react'
function Card({
className,
@@ -84,4 +84,4 @@ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
)
}
-export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent }
+export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
diff --git a/apps/web/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsx
index fedd634..3dc2305 100644
--- a/apps/web/src/components/ui/checkbox.tsx
+++ b/apps/web/src/components/ui/checkbox.tsx
@@ -1,9 +1,9 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
-import { Checkbox as CheckboxPrimitive } from 'radix-ui'
import { CheckIcon } from 'lucide-react'
+import { Checkbox as CheckboxPrimitive } from 'radix-ui'
+import * as React from 'react'
function Checkbox({ className, ...props }: React.ComponentProps) {
return (
diff --git a/apps/web/src/components/ui/dropdown-menu.tsx b/apps/web/src/components/ui/dropdown-menu.tsx
index 8916135..ca2458c 100644
--- a/apps/web/src/components/ui/dropdown-menu.tsx
+++ b/apps/web/src/components/ui/dropdown-menu.tsx
@@ -1,9 +1,9 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
-import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui'
import { CheckIcon, ChevronRightIcon } from 'lucide-react'
+import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui'
+import * as React from 'react'
function DropdownMenu({ ...props }: React.ComponentProps) {
return
@@ -232,18 +232,18 @@ function DropdownMenuSubContent({
export {
DropdownMenu,
- DropdownMenuPortal,
- DropdownMenuTrigger,
+ DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuGroup,
- DropdownMenuLabel,
DropdownMenuItem,
- DropdownMenuCheckboxItem,
+ DropdownMenuLabel,
+ DropdownMenuPortal,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
- DropdownMenuSubTrigger,
DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuTrigger,
}
diff --git a/apps/web/src/components/ui/field.tsx b/apps/web/src/components/ui/field.tsx
index 6b75750..d5d65c4 100644
--- a/apps/web/src/components/ui/field.tsx
+++ b/apps/web/src/components/ui/field.tsx
@@ -1,6 +1,6 @@
-import { useMemo } from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
+import { useMemo } from 'react'
import { Label } from '@/components/ui/label'
import { Separator } from '@/components/ui/separator'
@@ -210,13 +210,13 @@ function FieldError({
export {
Field,
- FieldLabel,
+ FieldContent,
FieldDescription,
FieldError,
FieldGroup,
+ FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
- FieldContent,
FieldTitle,
}
diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx
index eeb9025..81f3987 100644
--- a/apps/web/src/components/ui/input.tsx
+++ b/apps/web/src/components/ui/input.tsx
@@ -1,5 +1,5 @@
-import * as React from 'react'
import { cn } from 'cn'
+import * as React from 'react'
function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
return (
diff --git a/apps/web/src/components/ui/label.tsx b/apps/web/src/components/ui/label.tsx
index f55f018..af69eb9 100644
--- a/apps/web/src/components/ui/label.tsx
+++ b/apps/web/src/components/ui/label.tsx
@@ -1,6 +1,6 @@
-import * as React from 'react'
import { cn } from 'cn'
import { Label as LabelPrimitive } from 'radix-ui'
+import * as React from 'react'
function Label({ className, ...props }: React.ComponentProps) {
return (
diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
index c0d09a5..9a43baa 100644
--- a/apps/web/src/components/ui/select.tsx
+++ b/apps/web/src/components/ui/select.tsx
@@ -1,7 +1,7 @@
-import * as React from 'react'
import { cn } from 'cn'
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react'
import { Select as SelectPrimitive } from 'radix-ui'
-import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react'
+import * as React from 'react'
function Select({ ...props }: React.ComponentProps) {
return
diff --git a/apps/web/src/components/ui/separator.tsx b/apps/web/src/components/ui/separator.tsx
index 8668b33..ffbf0f8 100644
--- a/apps/web/src/components/ui/separator.tsx
+++ b/apps/web/src/components/ui/separator.tsx
@@ -1,8 +1,8 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
import { Separator as SeparatorPrimitive } from 'radix-ui'
+import * as React from 'react'
function Separator({
className,
diff --git a/apps/web/src/components/ui/sheet.tsx b/apps/web/src/components/ui/sheet.tsx
index 8ecdece..1bf8fe3 100644
--- a/apps/web/src/components/ui/sheet.tsx
+++ b/apps/web/src/components/ui/sheet.tsx
@@ -1,11 +1,10 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
-import { Dialog as SheetPrimitive } from 'radix-ui'
-
-import { Button } from '@/components/ui/button'
import { XIcon } from 'lucide-react'
+import { Dialog as SheetPrimitive } from 'radix-ui'
+import * as React from 'react'
+import { Button } from '@/components/ui/button'
function Sheet({ ...props }: React.ComponentProps) {
return
@@ -120,11 +119,11 @@ function SheetDescription({
export {
Sheet,
- SheetTrigger,
SheetClose,
SheetContent,
- SheetHeader,
- SheetFooter,
- SheetTitle,
SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
+ SheetTrigger,
}
diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx
index 2052afe..9c3e721 100644
--- a/apps/web/src/components/ui/sidebar.tsx
+++ b/apps/web/src/components/ui/sidebar.tsx
@@ -1,9 +1,8 @@
-import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
+import { PanelLeftIcon } from 'lucide-react'
import { Slot } from 'radix-ui'
-
-import { useIsMobile } from '@/hooks/use-mobile'
+import * as React from 'react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Separator } from '@/components/ui/separator'
@@ -16,7 +15,7 @@ import {
} from '@/components/ui/sheet'
import { Skeleton } from '@/components/ui/skeleton'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
-import { PanelLeftIcon } from 'lucide-react'
+import { useIsMobile } from '@/hooks/use-mobile'
const SIDEBAR_COOKIE_NAME = 'sidebar_state'
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
diff --git a/apps/web/src/components/ui/sonner.tsx b/apps/web/src/components/ui/sonner.tsx
index 435b9c7..67ff537 100644
--- a/apps/web/src/components/ui/sonner.tsx
+++ b/apps/web/src/components/ui/sonner.tsx
@@ -1,12 +1,12 @@
-import { useTheme } from 'next-themes'
-import { Toaster as Sonner, type ToasterProps } from 'sonner'
import {
CircleCheckIcon,
InfoIcon,
- TriangleAlertIcon,
- OctagonXIcon,
Loader2Icon,
+ OctagonXIcon,
+ TriangleAlertIcon,
} from 'lucide-react'
+import { useTheme } from 'next-themes'
+import { Toaster as Sonner, type ToasterProps } from 'sonner'
const Toaster = ({ ...props }: ToasterProps) => {
const { theme = 'system' } = useTheme()
diff --git a/apps/web/src/components/ui/switch.tsx b/apps/web/src/components/ui/switch.tsx
index 08360ad..a789c5f 100644
--- a/apps/web/src/components/ui/switch.tsx
+++ b/apps/web/src/components/ui/switch.tsx
@@ -1,8 +1,8 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
import { Switch as SwitchPrimitive } from 'radix-ui'
+import * as React from 'react'
function Switch({
className,
diff --git a/apps/web/src/components/ui/table.tsx b/apps/web/src/components/ui/table.tsx
index 3e3784a..c255d8a 100644
--- a/apps/web/src/components/ui/table.tsx
+++ b/apps/web/src/components/ui/table.tsx
@@ -1,7 +1,7 @@
'use client'
-import * as React from 'react'
import { cn } from 'cn'
+import * as React from 'react'
function Table({ className, ...props }: React.ComponentProps<'table'>) {
return (
@@ -85,4 +85,4 @@ function TableCaption({ className, ...props }: React.ComponentProps<'caption'>)
)
}
-export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }
+export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow }
diff --git a/apps/web/src/components/ui/tabs.tsx b/apps/web/src/components/ui/tabs.tsx
index e69cf27..0b8d237 100644
--- a/apps/web/src/components/ui/tabs.tsx
+++ b/apps/web/src/components/ui/tabs.tsx
@@ -1,7 +1,7 @@
-import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from 'cn'
import { Tabs as TabsPrimitive } from 'radix-ui'
+import * as React from 'react'
function Tabs({
className,
@@ -74,4 +74,4 @@ function TabsContent({ className, ...props }: React.ComponentProps) {
return (
diff --git a/apps/web/src/components/ui/tooltip.tsx b/apps/web/src/components/ui/tooltip.tsx
index 0cf4b1b..b0455f2 100644
--- a/apps/web/src/components/ui/tooltip.tsx
+++ b/apps/web/src/components/ui/tooltip.tsx
@@ -1,6 +1,6 @@
-import * as React from 'react'
import { cn } from 'cn'
import { Tooltip as TooltipPrimitive } from 'radix-ui'
+import * as React from 'react'
function TooltipProvider({
delayDuration = 0,
diff --git a/apps/web/src/lib/auth-client.ts b/apps/web/src/lib/auth-client.ts
index f01d8d8..f4a94ca 100644
--- a/apps/web/src/lib/auth-client.ts
+++ b/apps/web/src/lib/auth-client.ts
@@ -5,7 +5,7 @@ import { createAuthClient } from 'better-auth/react'
* BetterAuth under `/api/auth/*`.
*/
export const authClient = createAuthClient({
- baseURL: import.meta.env.VITE_API_URL ?? 'http://localhost:3000',
+ baseURL: import.meta.env.VITE_API_URL ?? 'http://localhost:4100',
})
export const { signIn, signUp, signOut, useSession } = authClient
diff --git a/apps/web/src/routes/_authenticated/tasks.tsx b/apps/web/src/routes/_authenticated/tasks.tsx
index 036e5f0..8cc5345 100644
--- a/apps/web/src/routes/_authenticated/tasks.tsx
+++ b/apps/web/src/routes/_authenticated/tasks.tsx
@@ -1,5 +1,5 @@
-import { createColumnHelper, tableFeatures, useTable } from '@tanstack/react-table'
import { createFileRoute } from '@tanstack/react-router'
+import { createColumnHelper, tableFeatures, useTable } from '@tanstack/react-table'
import { SearchIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
diff --git a/biome.json b/biome.json
index 328dc3a..9fde346 100644
--- a/biome.json
+++ b/biome.json
@@ -16,10 +16,30 @@
]
},
"formatter": {
- "enabled": false
+ "enabled": true,
+ "indentStyle": "space",
+ "indentWidth": 2,
+ "lineWidth": 100,
+ "lineEnding": "lf"
+ },
+ "javascript": {
+ "formatter": {
+ "quoteStyle": "single",
+ "jsxQuoteStyle": "double",
+ "quoteProperties": "asNeeded",
+ "semicolons": "asNeeded",
+ "trailingCommas": "all",
+ "arrowParentheses": "always",
+ "bracketSpacing": true
+ }
},
"assist": {
- "enabled": false
+ "enabled": true,
+ "actions": {
+ "source": {
+ "organizeImports": "on"
+ }
+ }
},
"linter": {
"enabled": true,
diff --git a/bun.lockb b/bun.lockb
index b3a9be8..11effa3 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index 10c01a5..fefee40 100644
--- a/package.json
+++ b/package.json
@@ -12,8 +12,8 @@
"lint": "turbo run lint",
"typecheck": "turbo run typecheck",
"test": "turbo run test",
- "format": "prettier --write \"**/*.{ts,tsx,json,md}\"",
- "format:check": "prettier --check \"**/*.{ts,tsx,json,md}\"",
+ "format": "biome format --write .",
+ "format:check": "biome format .",
"db:migrate": "turbo run db:migrate --filter=@superlist/api",
"db:generate": "turbo run db:generate --filter=@superlist/api",
"db:studio": "turbo run db:studio --filter=@superlist/api",
@@ -22,7 +22,6 @@
},
"devDependencies": {
"@biomejs/biome": "^2.5.15",
- "prettier": "^3.9.10",
"turbo": "^2.11.7",
"typescript": "~6.0.2"
},
diff --git a/turbo.json b/turbo.json
index cee3dcd..feb4876 100644
--- a/turbo.json
+++ b/turbo.json
@@ -8,20 +8,33 @@
},
"lint": {},
"typecheck": {},
- "test": {},
+ "test": {
+ "env": ["NODE_ENV", "DATABASE_URL", "BETTER_AUTH_SECRET", "BETTER_AUTH_URL", "CORS_ORIGIN"]
+ },
"dev": {
"cache": false,
- "persistent": true
+ "persistent": true,
+ "passThroughEnv": [
+ "DATABASE_URL",
+ "PORT",
+ "CORS_ORIGIN",
+ "BETTER_AUTH_SECRET",
+ "BETTER_AUTH_URL",
+ "NODE_ENV"
+ ]
},
"db:generate": {
- "cache": false
+ "cache": false,
+ "env": ["DATABASE_URL"]
},
"db:migrate": {
- "cache": false
+ "cache": false,
+ "env": ["DATABASE_URL"]
},
"db:studio": {
"cache": false,
- "persistent": true
+ "persistent": true,
+ "env": ["DATABASE_URL"]
}
}
}