-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathknip.config.js
More file actions
49 lines (44 loc) · 1.69 KB
/
knip.config.js
File metadata and controls
49 lines (44 loc) · 1.69 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
/*
Knip is an export–import dependency checker.
If you want to use it, call pnpm knip.
You can also add " && knip" to "pre-push" and "check" in the root package.json
to make it part of your development process.
Some exports may throw errors during setup because the configuration below is prepared
for the full version of the Workflow Builder.
But knip is a very useful tool, so after resolving these issues, it will be useful for you.
*/
/**
* @type {import('knip').KnipConfig}
*/
export default {
workspaces: {
'.': {
ignoreUnresolved: ['../../apps/frontend/global.d.ts'],
ignoreDependencies: ['husky'],
},
'apps/frontend': {
entry: 'src/main.tsx',
project: ['src/**/*.{ts,tsx}', '!src/app/plugins/**/libs/**/*.{ts,tsx}'],
ignore: [
'src/app/features/plugins-core/utils/missing-plugin.stub.ts',
'src/app/utils/ensure-bounds.ts',
'src/app/utils/node-changed-listeners.ts',
'src/app/store/slices/diagram-slice/actions.ts',
'src/app/features/props-passing/hooks/use-call-on-edge-change.ts',
'src/app/features/props-passing/hooks/use-call-on-node-change.ts',
'src/app/features/props-passing/utils/get-diagram-model-from-input.ts',
'src/app/features/props-passing/utils/get-diagram-model-from-store.ts',
],
ignoreDependencies: ['anymatch', 'javascript-obfuscator', 'html-to-image', 'jspdf', 'libavoid-js', 'web-worker'],
},
'apps/icons': {
entry: 'index.ts',
project: '**/*.{ts,tsx}',
ignoreDependencies: ['@phosphor-icons/core', '@svgr/core'],
},
'apps/types': {
project: '**/*.ts',
ignoreDependencies: ['@phosphor-icons/core'],
},
},
};