-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathknip.config.ts
40 lines (38 loc) · 1.08 KB
/
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
import type { KnipConfig } from 'knip'
const config: KnipConfig = {
ignore: ['**/fixtures/**'],
vitest: {
config: ['vitest.{config,shared,workspace}.ts']
},
ignoreDependencies: [
'prettier-plugin-*',
'sharp',
// TailwindCSS v4 is not detectable currently
'tailwindcss',
// Can't detect `pnpm with-env tsx`
'tsx'
],
workspaces: {
'.': {
entry: ['turbo/generators/config.ts']
},
'apps/docs': {
entry: ['content-collections.ts', 'src/components/demos/**/*.tsx']
},
'apps/web': {
entry: ['content-collections.ts', 'src/i18n/request.ts', 'src/e2e/auth.setup.ts']
},
'packages/db': {
entry: ['src/seed.ts']
},
'packages/eslint-config': {
// @see https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/325
ignoreDependencies: ['@eslint/config-inspector', 'eslint-plugin-tailwindcss']
},
'packages/ui': {
// @see https://github.com/shadcn-ui/ui/issues/4792
ignoreDependencies: ['@radix-ui/react-context', '@tailwindcss/typography']
}
}
}
export default config