-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.config.ts
More file actions
53 lines (52 loc) · 1.38 KB
/
Copy pathknip.config.ts
File metadata and controls
53 lines (52 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const knipConfig = {
$schema: 'https://unpkg.com/knip@latest/schema.json',
ignore: [
'.venv/**',
'engine/**',
'cli/**',
'proxy.ts',
// Shadcn/UI components, we keep them as part of the template
'components/ui/**',
// Chart/skeleton components are template examples
'components/skeletons.tsx',
'components/charts/**',
// React Email templates, scanned by email dev server
'emails/**',
'lib/email/otp.ts',
// Library barrel exports, infrastructure for template users
'lib/**/index.ts',
// Queue system - public API for manual job triggering
'lib/queue/queues/**',
'lib/queue/init-workers.ts',
],
ignoreDependencies: [
// Shadcn/UI dependencies (only used in components/ui/** which is ignored)
'@radix-ui/*',
'cmdk',
'embla-carousel-react',
'react-resizable-panels',
'tailwindcss',
'tailwindcss-animate',
'vaul',
// They are used but not imported in the codebase
'drizzle-zod',
'@trpc/next',
],
ignoreBinaries: ['uv', 'shadcn'],
rules: {
files: 'error',
dependencies: 'error',
devDependencies: 'warn',
unlisted: 'error',
binaries: 'error',
unresolved: 'error',
exports: 'error',
types: 'error',
nsExports: 'error',
nsTypes: 'error',
duplicates: 'error',
enumMembers: 'error',
classMembers: 'error',
},
};
export default knipConfig;