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 Unused dependency: @radix-ui/react-toggle-group knip/unused-dependency · medium confidence package.json:57 | package.json:57 |
| Warning | Warning Unused dependency: @radix-ui/react-tooltip knip/unused-dependency · medium confidence package.json:58 | package.json:58 |
| Warning | Warning Unused dependency: @typescript-eslint/parser knip/unused-dependency · medium confidence package.json:60 | package.json:60 |
| Warning | Warning Unused dependency: cmdk knip/unused-dependency · medium confidence package.json:65 | package.json:65 |
| Warning | Warning Unused dependency: concurrently knip/unused-dependency · medium confidence package.json:66 | package.json:66 |
| Warning | Warning Unused dependency: nodemailer knip/unused-dependency · medium confidence package.json:74 | package.json:74 |
| Warning | Warning Unused dependency: prop-types knip/unused-dependency · medium confidence package.json:76 | package.json:76 |
| Warning | Warning Unused dependency: react-day-picker knip/unused-dependency · medium confidence package.json:78 | package.json:78 |
| Warning | Warning Unused dependency: react-editor-js knip/unused-dependency · medium confidence package.json:80 | package.json:80 |
| Warning | Warning Unused dependency: shiki knip/unused-dependency · medium confidence package.json:84 | package.json:84 |
| Warning | Warning @babel/helpers@7.21.0Transitive1 vulnerability · fixed in 7.26.10Pulled in by next@13.3.2-canary.13, and 5 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning @babel/runtime@7.21.0Transitive1 vulnerability · fixed in 7.26.10Pulled in by @editorjs/link@2.5.0, and 35 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning @grpc/grpc-js@1.8.14Transitive1 vulnerability · fixed in 1.8.22Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning @opentelemetry/core@1.5.0Transitive1 vulnerability · fixed in 2.8.0Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning @protobufjs/utf8@1.1.0Transitive1 vulnerability · fixed in 1.1.1Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning ajv@6.12.6Transitive1 vulnerability · fixed in 6.14.0Pulled in by @typescript-eslint/parser@5.59.0, and 4 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning ajv@8.12.0Transitive1 vulnerability · fixed in 8.18.0Pulled in by @commitlint/cli@17.6.1
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning axios@0.25.0Transitive12 vulnerabilities · fixed in 0.33.0Pulled in by postmark@3.0.15
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning brace-expansion@1.1.11Transitive2 vulnerabilities · fixed in 1.1.21Pulled in by @typescript-eslint/parser@5.59.0, and 10 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning esbuild@0.17.18Transitive1 vulnerability · fixed in 0.25.0Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning estree-util-value-to-estree@1.3.0Transitive1 vulnerability · fixed in 3.3.3Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning fflate@0.7.4Transitive1 vulnerability · fixed in 0.7.5Pulled in by @vercel/og@0.0.21
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning follow-redirects@1.15.2Transitive3 vulnerabilities · fixed in 1.16.0Pulled in by postmark@3.0.15
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning html-janitor@2.0.4Transitive1 vulnerability · no fix availablePulled in by @editorjs/editorjs@2.26.5, and 1 other direct dependency
| pnpm-lock.yaml |
| Warning | Warning jose@4.14.1Transitive1 vulnerability · fixed in 4.15.5Pulled in by next-auth@4.22.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |