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 Parameter 'req' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) app/api/users/stripe/route.ts:12 | app/api/users/stripe/route.ts:12 |
| Warning | Warning Identifier 'absoluteUrl' is imported but never used. eslint(no-unused-vars) app/layout.tsx:6 | app/layout.tsx:6 |
| Warning | Warning Calling setState synchronously within an effect can trigger cascading renders react(set-state-in-effect) components/editor.tsx:71 | components/editor.tsx:71 |
| Warning | Warning Cannot access refs during render react(refs) components/editor.tsx:124 | components/editor.tsx:124 |
| Warning | Warning Cannot create components during render react(static-components) components/mdx-components.tsx:164 | components/mdx-components.tsx:164 |
| Warning | Warning Missing "key" prop for element in iterator. react(jsx-key) components/sidebar-nav.tsx:43 | components/sidebar-nav.tsx:43 |
| Warning | Warning Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/alert-dialog.tsx:29 | components/ui/alert-dialog.tsx:29 |
| Warning | Warning Parameter 'props' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/calendar.tsx:55 | components/ui/calendar.tsx:55 |
| Warning | Warning Parameter 'props' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/calendar.tsx:56 | components/ui/calendar.tsx:56 |
| Warning | Warning Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/radio-group.tsx:26 | components/ui/radio-group.tsx:26 |
| Warning | Warning Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/sheet.tsx:45 | components/ui/sheet.tsx:45 |
| 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 Unknown value "theme('colors.popover.DEFAULT')" for property "background" stylelint/declaration-property-value-no-unknown styles/editor.css:11 | styles/editor.css:11 |
| Warning | Warning Unknown value "theme('colors.border')" for property "border-color" stylelint/declaration-property-value-no-unknown styles/editor.css:13 | styles/editor.css:13 |
| Warning | Warning Unknown value "theme('colors.muted.DEFAULT')" for property "background-color" stylelint/declaration-property-value-no-unknown styles/editor.css:26 | styles/editor.css:26 |
| Warning | Warning Unknown value "theme('colors.border')" for property "border-color" stylelint/declaration-property-value-no-unknown styles/editor.css:31 | styles/editor.css:31 |
| Warning | Warning Unknown value "theme('colors.input')" for property "background" stylelint/declaration-property-value-no-unknown styles/editor.css:32 | styles/editor.css:32 |
| Warning | Warning Unknown value "theme('colors.accent.DEFAULT')" for property "background" stylelint/declaration-property-value-no-unknown styles/editor.css:37 | styles/editor.css:37 |
| Warning | Warning Unknown value "theme('colors.accent.DEFAULT')" for property "background-color" stylelint/declaration-property-value-no-unknown styles/editor.css:50 | styles/editor.css:50 |
| Warning | Warning Unknown value "theme('colors.accent.foreground')" for property "color" stylelint/declaration-property-value-no-unknown styles/editor.css:51 | styles/editor.css:51 |
| Warning | Warning Unknown value "theme('colors.destructive.DEFAULT')" for property "background" stylelint/declaration-property-value-no-unknown styles/editor.css:55 | styles/editor.css:55 |