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 js-yaml@3.14.1Transitive2 vulnerabilities · fixed in 3.15.0Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning js-yaml@4.1.0Transitive2 vulnerabilities · fixed in 4.2.0Pulled in by @typescript-eslint/parser@5.59.0, and 7 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning lodash@4.17.21Transitive1 vulnerability · fixed in 4.17.23Pulled in by concurrently@8.0.1, and 2 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning micromatch@4.0.5Transitive1 vulnerability · fixed in 4.0.8Pulled in by contentlayer@0.3.1, and 7 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning nanoid@3.3.6Transitive1 vulnerability · fixed in 3.3.8Pulled in by @editorjs/editorjs@2.26.5, and 13 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning next-auth@4.22.1Direct3 vulnerabilities · fixed in 4.24.15pnpm add "next-auth@^4.24.15"
| pnpm-lock.yaml |
| Warning | Warning next@13.3.2-canary.13Direct14 vulnerabilities · fixed in 15.5.21pnpm add "next@^15.5.21"
| pnpm-lock.yaml |
| Warning | Warning nodemailer@6.9.1Direct16 vulnerabilities · fixed in 10.1.4pnpm add "nodemailer@^10.1.4"
| pnpm-lock.yaml |
| Warning | Warning picomatch@2.3.1Transitive1 vulnerability · fixed in 2.3.2Pulled in by contentlayer@0.3.1, and 8 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning postcss-selector-parser@6.0.10Transitive1 vulnerability · fixed in 6.1.5Pulled in by @tailwindcss/typography@0.5.9
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning postcss-selector-parser@6.0.11Transitive1 vulnerability · fixed in 6.1.5Pulled in by tailwindcss-animate@1.0.5, and 4 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning postcss@8.4.14Transitive3 vulnerabilities · fixed in 8.5.23Pulled in by next@13.3.2-canary.13, and 4 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning postcss@8.4.23Direct3 vulnerabilities · fixed in 8.5.23pnpm add "postcss@^8.5.23"
| pnpm-lock.yaml |
| Warning | Warning protobufjs@6.11.3Transitive5 vulnerabilities · fixed in 7.6.3Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning protobufjs@7.2.3Transitive5 vulnerabilities · fixed in 7.6.3Pulled in by contentlayer@0.3.1, and 1 other direct dependency
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning qs@6.11.1Transitive4 vulnerabilities · fixed in 6.16.1Pulled in by stripe@11.18.0
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning satori@0.0.44Transitive1 vulnerability · fixed in 0.33.5Pulled in by @vercel/og@0.0.21
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning uuid@8.3.2Transitive1 vulnerability · fixed in 11.1.1Pulled in by next-auth@4.22.1, and 3 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning word-wrap@1.2.3Transitive1 vulnerability · fixed in 1.2.4Pulled in by @typescript-eslint/parser@5.59.0, and 4 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning yaml@1.10.2Transitive1 vulnerability · fixed in 1.10.3Pulled in by contentlayer@0.3.1, and 5 other direct dependencies
Update Or pin it under
| pnpm-lock.yaml |
| Warning | Warning zod@3.21.4Direct1 vulnerability · fixed in 3.22.3pnpm add "zod@^3.22.3"
| pnpm-lock.yaml |
| 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 Expected selector ".dark .ce-toolbar__plus" to come before selector ".dark .ce-toolbar__plus:hover", at line 1 stylelint/no-descending-specificity styles/editor.css:20 | styles/editor.css:20 |
| 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 |