-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.config.ts
More file actions
57 lines (55 loc) · 2.17 KB
/
knip.config.ts
File metadata and controls
57 lines (55 loc) · 2.17 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
54
55
56
57
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
workspaces: {
'.': {
// Root workspace configuration
entry: [
'configs/*.mts' // Shared config files used by packages
],
project: ['configs/**/*.{ts,mts}'],
// Dependencies used in shared configs and ambient types
ignore: [
'@types/css-modules', // Provides ambient types for CSS modules
'@types/mdx' // Provides ambient types for MDX files
]
},
'apps/docs': {
// Ignore files and dependencies used by Storybook but not directly traceable
ignore: ['.storybook/addons/why-did-you-render/**/*'], // Storybook addon files
ignoreDependencies: [
'@bento/*', // Used via Storybook story discovery
'react-diff-viewer-continued' // Used in why-did-you-render addon
]
},
'packages/@bento/*': {
// Ignore circular dependencies in examples and tests - these are for demo purposes
ignore: [
'examples/**/*', // Example files that may use circular dependencies for demos
'test/**/*.test.tsx' // Test files that may need circular dependencies for testing
]
},
'packages/@godaddy/*': {
// Ignore circular dependencies in examples and tests - these are for demo purposes
ignore: [
'examples/**/*', // Example files that may use circular dependencies for demos
'test/**/*.test.tsx' // Test files that may need circular dependencies for testing
]
},
'packages/dev/*': {
// Ignore circular dependencies in examples and tests - these are for demo purposes
ignore: [
'examples/**/*', // Example files that may use circular dependencies for demos
'test/**/*.test.tsx' // Test files that may need circular dependencies for testing
]
},
'packages/dev/storybook-addon-helpers': {
ignore: ['test/fixtures/**/*'] // Test fixture files are intentionally unused
}
},
// Global ignores for dependencies that provide ambient types or are used in scripts
ignoreDependencies: [
'@types/css-modules', // CSS module types used globally
'@types/mdx' // MDX types used globally
]
};
export default config;