import { base, defineConfig, mergeConfig } from "@raredays/lint/knip"; // Explicit return-type annotation avoids TS2742 (see oxlint.config.ts). const config: ReturnType = defineConfig( mergeConfig(base, { entry: [ // Read by path in scripts/build-theme.mjs (loadSiteSpec), never imported. "site.spec.ts", // The composition root: module fragments (billing, cms, ...) export // their wired port here for routes the app author has not written yet, // so its exports are this app's public API surface, not dead code. "app/lib/runtime.ts", // Ships a typed `backend` client for server components/route handlers // the app author has not written yet; only its streaming counterpart // (`proxyToBackend`) is wired into a route out of the box. "app/lib/backend-client.ts", // CRDA:knip-entry ], ignoreDependencies: [ // CRDA:knip-ignoreDependencies ], }), ); export default config;