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 |
|---|---|---|
| Warning | Warning Found extra effect dependencies react(exhaustive-effect-dependencies) components/ui/use-toast.ts:180 | components/ui/use-toast.ts:180 |
| Warning | Warning Unexpected dangling '_' in '`_raw`'. eslint(no-underscore-dangle) contentlayer.config.js:11 | contentlayer.config.js:11 |
| Warning | Warning Unexpected dangling '_' in '`_raw`'. eslint(no-underscore-dangle) contentlayer.config.js:15 | contentlayer.config.js:15 |
| Warning | Warning Calling setState synchronously within an effect can trigger cascading renders react(set-state-in-effect) hooks/use-mounted.ts:7 | hooks/use-mounted.ts:7 |
| Warning | Warning Unexpected `any`. Specify a different type. typescript(no-explicit-any) lib/auth.ts:17 | lib/auth.ts:17 |
| Warning | Warning Do not use @ts-nocheck because it alters compilation errors. typescript(ban-ts-comment) lib/subscription.ts:1 | lib/subscription.ts:1 |
| Warning | Warning Do not use @ts-nocheck because it alters compilation errors. typescript(ban-ts-comment) lib/toc.ts:1 | lib/toc.ts:1 |
| Warning | Warning should be a `Set`, and use `.has()` to check existence or non-existence. unicorn(prefer-set-has) lib/toc.ts:8 | lib/toc.ts:8 |
| Warning | Warning 'node' is already declared in the upper scope. eslint(no-shadow) lib/toc.ts:12 | lib/toc.ts:12 |
| Warning | Warning Imported module should be assigned import(no-unassigned-import) next.config.mjs:3 | next.config.mjs:3 |
| Warning | Warning @hookform/resolvers 3.1.0 is 4 major versions behind (latest 7.0.6) deps/outdated-major package.json | package.json |
| Warning | Warning concurrently 8.0.1 is 2 major versions behind (latest 10.0.7) deps/outdated-major package.json | package.json |
| Warning | Warning date-fns 2.29.3 is 2 major versions behind (latest 4.4.0) deps/outdated-major package.json | package.json |
| Warning | Warning @prisma/client 4.13.0 is 3 major versions behind (latest 7.10.1) deps/outdated-major package.json | package.json |
| Warning | Warning @typescript-eslint/parser 5.59.0 is 3 major versions behind (latest 8.72.2) deps/outdated-major package.json | package.json |
| Warning | Warning nodemailer 6.9.1 is 4 major versions behind (latest 10.5.0) deps/outdated-major package.json | package.json |
| Warning | Warning react-day-picker 8.7.1 is 2 major versions behind (latest 10.0.2) deps/outdated-major package.json | package.json |
| Warning | Warning next 13.3.2-canary.13 is 3 major versions behind (latest 16.4.6) deps/outdated-major package.json | package.json |
| Warning | Warning shiki 0.11.1 is 4 major versions behind (latest 4.6.0) deps/outdated-major package.json | package.json |
| Warning | Warning postmark 3.0.15 is 2 major versions behind (latest 5.1.1) deps/outdated-major package.json | package.json |
| Warning | Warning tailwind-merge 1.12.0 is 2 major versions behind (latest 3.7.0) deps/outdated-major package.json | package.json |
| Warning | Warning stripe 11.18.0 is 12 major versions behind (latest 23.1.0) deps/outdated-major package.json | package.json |
| Warning | Warning Unused dependency: @editorjs/paragraph knip/unused-dependency · medium confidence package.json:26 | package.json:26 |
| Warning | Warning Unused dependency: @radix-ui/react-accessible-icon knip/unused-dependency · medium confidence package.json:31 | package.json:31 |
| Warning | Warning Unused dependency: @radix-ui/react-accordion knip/unused-dependency · medium confidence package.json:32 | package.json:32 |