-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathknip.ts
49 lines (47 loc) · 1.3 KB
/
knip.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
42
43
44
45
46
47
48
49
import { type KnipConfig } from 'knip'
const config: KnipConfig = {
next: {
entry: [
'next.config.{js,ts,cjs,mjs}',
'src/{instrumentation,middleware}.{js,ts}',
'src/app/global-error.{js,jsx,ts,tsx}',
'src/app/**/{error,layout,loading,not-found,page,template,default}.{js,jsx,ts,tsx}',
'src/app/**/route.{js,jsx,ts,tsx}',
'src/app/{manifest,sitemap,robots}.{js,ts}',
'src/app/**/{icon,apple-icon}.{js,jsx,ts,tsx}',
'src/app/**/{opengraph,twitter}-image.{js,jsx,ts,tsx}',
'src/pages/**/*.{js,jsx,ts,tsx}',
'src/boundary/root/ui/*.{js,jsx,ts,tsx}',
'src/boundary/**/screen.{js,jsx,ts,tsx}'
]
},
entry: ['vitest.config.{js,ts}', 'config/**'],
ignore: [
'**/*.d.ts',
'src/**/*.stories.{ts,tsx}',
'src/__mocks__/**/*',
'src/__tests__/**/*',
'src/env/**/*',
'scripts/**/*',
'vitest.setup.ts',
'lefthook.yml',
'src/lib/utils.ts'
],
ignoreDependencies: [
'@mswjs/.+',
'@secretlint/.+',
'@storybook/.+',
'@types/.+',
'@typescript-eslint/.+',
'better-typescript-lib',
'class-variance-authority',
'tailwindcss-animate',
'tailwind-merge',
'autoprefixer',
'lucide-react',
'clsx'
],
ignoreBinaries: ['lefthook'],
ignoreExportsUsedInFile: true
}
export default config