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 |
|---|---|---|
| Info | Info clsx 1.2.1 is 1 major version behind (latest 2.1.1) deps/outdated-major package.json | package.json |
| Info | Info cmdk 0.1.22 is 1 major version behind (latest 1.1.1) deps/outdated-major package.json | package.json |
| Info | Info @vercel/og 0.0.21 is 1 major version behind (latest 1.0.3) deps/outdated-major package.json | package.json |
| Info | Info lucide-react 0.92.0 is 1 major version behind (latest 1.73.0) deps/outdated-major package.json | package.json |
| Info | Info react 18.2.0 is 1 major version behind (latest 19.3.1) deps/outdated-major package.json | package.json |
| Info | Info react-dom 18.2.0 is 1 major version behind (latest 19.3.1) deps/outdated-major package.json | package.json |
| Info | Info @commitlint/cli 17.6.1 is 4 major versions behind (latest 21.2.4) deps/outdated-major package.json | package.json |
| Info | Info zod 3.21.4 is 1 major version behind (latest 4.6.7) deps/outdated-major package.json | package.json |
| Info | Info @commitlint/config-conventional 17.6.1 is 4 major versions behind (latest 21.2.4) deps/outdated-major package.json | package.json |
| Info | Info @types/react-dom 18.0.6 is 1 major version behind (latest 19.3.0) deps/outdated-major package.json | package.json |
| Info | Info @types/react 18.0.15 is 1 major version behind (latest 19.3.0) deps/outdated-major package.json | package.json |
| Info | Info eslint@8.39.0 is deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. deps/deprecated package.json | package.json |
| Info | Info eslint 8.39.0 is 2 major versions behind (latest 10.15.0) deps/outdated-major package.json | package.json |
| Info | Info eslint-config-prettier 8.8.0 is 2 major versions behind (latest 10.1.8) deps/outdated-major package.json | package.json |
| Info | Info eslint-plugin-tailwindcss 3.11.0 is 1 major version behind (latest 4.4.0) deps/outdated-major package.json | package.json |
| Info | Info husky 8.0.3 is 1 major version behind (latest 9.1.7) deps/outdated-major package.json | package.json |
| Info | Info @types/node 18.16.0 is 8 major versions behind (latest 26.6.6) deps/outdated-major package.json | package.json |
| Info | Info prettier 2.8.8 is 1 major version behind (latest 3.10.1) deps/outdated-major package.json | package.json |
| Info | Info eslint-config-next 13.0.0 is 3 major versions behind (latest 16.4.6) deps/outdated-major package.json | package.json |
| Info | Info rehype 12.0.1 is 1 major version behind (latest 13.0.2) deps/outdated-major package.json | package.json |
| Info | Info mdast-util-toc 6.1.1 is 1 major version behind (latest 7.2.0) deps/outdated-major package.json | package.json |
| Info | Info rehype-slug 5.1.0 is 1 major version behind (latest 6.0.0) deps/outdated-major package.json | package.json |
| Info | Info remark 14.0.2 is 1 major version behind (latest 15.0.1) deps/outdated-major package.json | package.json |
| Info | Info remark-gfm 3.0.1 is 1 major version behind (latest 4.0.1) deps/outdated-major package.json | package.json |
| Info | Info pretty-quick 3.1.3 is 1 major version behind (latest 4.2.2) deps/outdated-major package.json | package.json |