-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathknip.config.ts
More file actions
61 lines (59 loc) · 1.32 KB
/
knip.config.ts
File metadata and controls
61 lines (59 loc) · 1.32 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
50
51
52
53
54
55
56
57
58
59
60
61
import type { KnipConfig } from 'knip'
const config: KnipConfig = {
workspaces: {
'.': {
entry: ['package.json'],
project: ['**/*.{ts,tsx,js,jsx,mjs,cjs}'],
ignore: [
'**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/cjs/**',
'**/esm/**',
'**/lib/**',
'**/coverage/**',
'**/.turbo/**',
'**/old/**',
'**/slides/**',
],
},
'packages/*': {
entry: ['src/index.{ts,tsx,js,jsx}', 'package.json'],
project: ['src/**/*.{ts,tsx,js,jsx,mjs,cjs}'],
ignore: [
'**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/cjs/**',
'**/esm/**',
'**/lib/**',
'**/coverage/**',
],
},
'apps/*': {
entry: ['src/**/*.{ts,tsx,js,jsx,mjs,cjs}', 'package.json'],
project: ['src/**/*.{ts,tsx,js,jsx,mjs,cjs}'],
ignore: [
'**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/.next/**',
'**/coverage/**',
],
},
},
ignore: [
'**/*.d.ts',
'**/jest.config.*',
'**/tsconfig*.json',
'**/turbo.json',
'**/pnpm-workspace.yaml',
'**/biome.json',
'**/eslint.config.*',
'**/commitlint.config.*',
],
}
export default config