litellm/ui/litellm-dashboard/knip.json
Yuneng Jiang 4f1c92b975
fix(ui): register type-test files as knip entry points
knip derives its entry points from vitest's `test.include`, which does not
cover `test.typecheck.include`, so the new `*.test-d.tsx` file read as an
unused file and failed the lint job. Declare the glob as an entry point.

Also drops the doc comment on `DataTableResolvedProps`; the rationale for
the resolved/public split belongs in the commit that introduced it.
2026-08-10 15:42:09 -07:00

32 lines
882 B
JSON

{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": ["scripts/**/*.{ts,mjs}", "src/components/ui/**/*.{ts,tsx}", "src/**/*.test-d.{ts,tsx}"],
"project": ["src/**/*.{ts,tsx}", "tests/**/*.{ts,tsx}", "scripts/**/*.{ts,mjs}"],
"ignore": ["src/lib/http/schema.d.ts"],
"ignoreDependencies": [
"openapi-typescript",
"@headlessui/tailwindcss",
"@tailwindcss/forms",
"tailwindcss",
"tw-animate-css"
],
"vitest": {
"config": ["vitest.config.ts"]
},
"rules": {
"files": "error",
"dependencies": "error",
"devDependencies": "error",
"optionalPeerDependencies": "error",
"unlisted": "error",
"binaries": "error",
"unresolved": "error",
"exports": "warn",
"nsExports": "warn",
"types": "warn",
"nsTypes": "warn",
"enumMembers": "warn",
"classMembers": "warn",
"duplicates": "warn"
}
}