-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.config.ts
More file actions
49 lines (45 loc) · 1.46 KB
/
knip.config.ts
File metadata and controls
49 lines (45 loc) · 1.46 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
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
ignore: [
'components/third-party/**',
'components/ui/**',
'components/ui-modified/**',
'components/ai-elements/**',
'lib/auth/auth.ts',
'lib/utils/**',
'components/shared/data-table/rows/row-skeleton.tsx',
'lib/cloudinary.ts',
// temporary ignore sample charts
'features/dashboard/charts/group-spending-chart.tsx',
'features/dashboard/charts/to-receive-vs-to-pay-chart.tsx',
'features/dashboard/charts/top-counterparties-chart.tsx',
// for the following, its common to have exports that cycle between being used and not used
// if you want a quick check on the health of this files, feel free to comment them out
// data
'features/notifications/data.ts',
'features/expenses/data.ts',
// client api
'features/notifications/client.ts',
'features/expenses/client.ts',
// schemas
'features/notifications/schemas.ts',
'features/expenses/schemas.ts',
'features/users/schemas.ts',
'tests/utils.ts',
],
ignoreDependencies: [
'require-in-the-middle',
'import-in-the-middle',
'prettier',
'@react-email/preview-server',
'react-syntax-highlighter',
'@radix-ui/react-collapsible',
'@radix-ui/react-hover-card',
'@radix-ui/react-use-controllable-state',
'shiki',
],
compilers: {
css: (text: string) => [...text.matchAll(/(?<=@)import[^;]+/g)].join('\n'),
},
};
export default config;