Check each one before you remove it
Knip finds these from the entry points Agnes works out for the repository. Code loaded by name, by a tool's config, by tests or from outside the repository looks unused too, and removing it breaks the app.
git rm -- \ 'app/api/auth/[...nextauth]/_route.ts' \ components/ui/accordion.tsx \ components/ui/aspect-ratio.tsx \ components/ui/badge.tsx \ components/ui/calendar.tsx \ components/ui/checkbox.tsx \ components/ui/collapsible.tsx \ components/ui/command.tsx \ components/ui/context-menu.tsx \ components/ui/dialog.tsx \ components/ui/hover-card.tsx \ components/ui/menubar.tsx \ components/ui/navigation-menu.tsx \ components/ui/popover.tsx \ components/ui/progress.tsx \ components/ui/radio-group.tsx \ components/ui/scroll-area.tsx \ components/ui/select.tsx \ components/ui/separator.tsx \ components/ui/sheet.tsx \ components/ui/slider.tsx \ components/ui/switch.tsx \ components/ui/tabs.tsx \ components/ui/textarea.tsx \ components/ui/toggle.tsx \ components/ui/tooltip.tsx
components/icons.tsx: type Icon components/pager.tsx: getPagerForDoc, flatten components/sidebar-nav.tsx: DocsSidebarNavItems components/ui/alert-dialog.tsx: AlertDialogTrigger components/ui/dropdown-menu.tsx: DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup components/ui/input.tsx: type InputProps components/ui/toast.tsx: ToastAction components/ui/use-toast.ts: reducer
| Severity | Finding | Location |
|---|---|---|
| Error | Error semver@7.5.0Transitive1 vulnerability · fixed in 7.5.2Pulled in by sharp@0.31.3, and 5 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Error | Error sharp@0.31.3Direct4 vulnerabilities · fixed in 0.35.5pnpm add "sharp@^0.35.5"
| pnpm-lock.yaml |
| Error | Error shell-quote@1.8.1Transitive2 vulnerabilities · fixed in 1.9.0Pulled in by concurrently@8.0.1
Update Or pin it under
| pnpm-lock.yaml |
| Error | Error source-map-js@1.0.2Transitive1 vulnerability · fixed in 1.2.2Pulled in by next@13.3.2-canary.13, and 11 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Error | Error tar-fs@2.1.1Transitive3 vulnerabilities · fixed in 2.1.4Pulled in by sharp@0.31.3
Update Or pin it under
| pnpm-lock.yaml |
| Error | Error toml@3.0.0Transitive6 vulnerabilities · fixed in 5.0.1Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Error | Error zod@3.21.4Direct2 vulnerabilities · fixed in 4.6.6pnpm add "zod@^4.6.6"
| pnpm-lock.yaml |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:11 | styles/editor.css:11 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:13 | styles/editor.css:13 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:26 | styles/editor.css:26 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:31 | styles/editor.css:31 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:32 | styles/editor.css:32 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:37 | styles/editor.css:37 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:50 | styles/editor.css:50 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:51 | styles/editor.css:51 |
| Error | Error Unexpected unknown function: theme biome/correctness/noUnknownFunction styles/editor.css:55 | styles/editor.css:55 |
| Error | Error Unexpected unknown at-rule: tailwind biome/suspicious/noUnknownAtRules styles/globals.css:1 | styles/globals.css:1 |
| Error | Error Unexpected unknown at-rule: tailwind biome/suspicious/noUnknownAtRules styles/globals.css:2 | styles/globals.css:2 |
| Error | Error Unexpected unknown at-rule: tailwind biome/suspicious/noUnknownAtRules styles/globals.css:3 | styles/globals.css:3 |
| Warning | Warning Identifier 'Card' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:9 | app/(dashboard)/dashboard/billing/page.tsx:9 |
| Warning | Warning Identifier 'CardContent' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:10 | app/(dashboard)/dashboard/billing/page.tsx:10 |
| Warning | Warning Identifier 'CardDescription' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:11 | app/(dashboard)/dashboard/billing/page.tsx:11 |
| Warning | Warning Identifier 'CardHeader' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:12 | app/(dashboard)/dashboard/billing/page.tsx:12 |
| Warning | Warning Identifier 'CardTitle' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:13 | app/(dashboard)/dashboard/billing/page.tsx:13 |
| Warning | Warning Identifier 'Card' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/settings/loading.tsx:1 | app/(dashboard)/dashboard/settings/loading.tsx:1 |