-
-
Notifications
You must be signed in to change notification settings - Fork 382
Expand file tree
/
Copy pathknip.config.ts
More file actions
24 lines (21 loc) · 786 Bytes
/
knip.config.ts
File metadata and controls
24 lines (21 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
// UI primitives and icons are a shared library — exports are used dynamically
// StaticPageLayout is referenced via markdown frontmatter `layout:` which knip can't detect
ignore: [
'src/components/ui/**',
'src/components/icons/**',
'src/layouts/StaticPageLayout.astro',
],
// Radix deps are used in ignored ui/ components; posthog-js is loaded via
// script tag in PostHog.astro; framer-motion is a peer dep of ShadCN UI
ignoreDependencies: [
'@radix-ui/react-checkbox',
'@radix-ui/react-scroll-area',
'framer-motion',
'posthog-js',
],
// Icon and UI components re-export named + default — this is intentional
exclude: ['duplicates'],
};
export default config;