-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathknip.config.ts
41 lines (39 loc) · 991 Bytes
/
knip.config.ts
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
import type { KnipConfig } from 'knip'
const config: KnipConfig = {
ignore: ['**/fixtures/**'],
vitest: {
config: ['vitest.{config,shared,workspace}.ts']
},
ignoreDependencies: ['prettier-plugin-*', 'sharp'],
workspaces: {
'.': {
entry: ['turbo/generators/config.ts']
},
'apps/docs': {
entry: ['mdx.config.ts', 'src/components/demos/**/*.tsx'],
postcss: {
config: 'postcss.config.mjs'
}
},
'apps/web': {
entry: ['mdx.config.ts', 'src/i18n/request.ts'],
ignore: ['**/e2e/**'],
postcss: {
config: 'postcss.config.mjs'
}
},
'packages/eslint-config': {
ignoreDependencies: ['@eslint/config-inspector']
},
'packages/prettier-config': {
prettier: {
config: '../../prettier.config.js'
}
},
'packages/ui': {
// https://github.com/shadcn-ui/ui/issues/4792
ignoreDependencies: ['@radix-ui/react-context']
}
}
}
export default config