mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Every shadcn UI re-export the simplifier residual flagged (`AlertDialogMedia/Overlay/Portal`, `AvatarBadge/Group/GroupCount`, `badgeVariants`, `buttonVariants`, the `Card*` / `Dialog*` / `DropdownMenu*` / `Select*` / `Sheet*` / `Table*` / `tabsListVariants` tier) is part of the upstream `new-york-v4` registry — confirmed against `https://ui.shadcn.com/r/styles/new-york-v4/*.json`. Keeping them in tree preserves library-shape parity so the next shadcn refresh applies cleanly. Mute the whole `src/components/ui/**` surface for the `exports` + `types` issue tiers via `ignoreIssues`. `ignoreExportsUsedInFile: true` covers the schema-source-of-truth pattern across `src/lib/ai/**` + `src/lib/validations/**`: the schemas are exported for the inferred `z.infer<>` type but only referenced internally for composition. Knip's default behaviour flagged them as unused exports; the option teaches it that same-file references count. Two genuine dead helpers go: `requireAdmin` in `src/lib/auth/session.ts` shadowed the real implementation in `src/lib/api-handler.ts` and had no callers, and `readDailyMeans` in `src/lib/rollups/measurement-read.ts` was an unused convenience wrapper around `readRollupBuckets`.
78 lines
1.8 KiB
JSON
78 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://unpkg.com/knip@6/schema.json",
|
|
"entry": [
|
|
"src/app/**/page.tsx",
|
|
"src/app/**/layout.tsx",
|
|
"src/app/**/route.ts",
|
|
"src/app/**/loading.tsx",
|
|
"src/app/**/not-found.tsx",
|
|
"src/app/**/error.tsx",
|
|
"src/app/**/global-error.tsx",
|
|
"src/app/**/template.tsx",
|
|
"src/app/**/opengraph-image.tsx",
|
|
"src/app/**/twitter-image.tsx",
|
|
"src/app/**/icon.tsx",
|
|
"src/app/**/apple-icon.tsx",
|
|
"src/app/**/manifest.ts",
|
|
"src/app/**/robots.ts",
|
|
"src/app/**/sitemap.ts",
|
|
"src/app/**/default.tsx",
|
|
"src/middleware.ts",
|
|
"src/instrumentation.ts",
|
|
"src/lib/jobs/**/*.ts",
|
|
"src/lib/health/**/*.ts",
|
|
"scripts/**/*.ts",
|
|
"scripts/**/*.mjs",
|
|
"e2e/**/*.spec.ts",
|
|
"e2e/**/*.test.ts",
|
|
"tests/**/*.test.ts",
|
|
"tests/**/setup.ts",
|
|
"vitest.config.ts",
|
|
"vitest.config.integration.ts",
|
|
"playwright.config.ts",
|
|
"next.config.ts",
|
|
"eslint.config.*",
|
|
"knip.json"
|
|
],
|
|
"project": [
|
|
"src/**/*.{ts,tsx}",
|
|
"scripts/**/*.{ts,mjs}",
|
|
"tests/**/*.ts",
|
|
"e2e/**/*.ts"
|
|
],
|
|
"ignore": [
|
|
"src/generated/**",
|
|
"prisma/**",
|
|
"public/**",
|
|
".next/**",
|
|
"**/__mocks__/**",
|
|
"e2e/setup/test-helpers.ts",
|
|
"src/components/charts/compliance-line-chart.tsx",
|
|
"src/lib/logging/index.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@types/node",
|
|
"@types/react",
|
|
"@types/react-dom",
|
|
"@hookform/resolvers",
|
|
"react-hook-form",
|
|
"@prisma/client",
|
|
"next-themes",
|
|
"@vitejs/plugin-react",
|
|
"shadcn",
|
|
"tailwindcss",
|
|
"testcontainers",
|
|
"tw-animate-css"
|
|
],
|
|
"ignoreBinaries": [
|
|
"docker",
|
|
"docker-compose",
|
|
"pg_isready",
|
|
"tsx"
|
|
],
|
|
"ignoreExportsUsedInFile": true,
|
|
"ignoreIssues": {
|
|
"src/components/ui/**": ["exports", "types"]
|
|
}
|
|
}
|