-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathknip.json
More file actions
66 lines (66 loc) · 1.44 KB
/
knip.json
File metadata and controls
66 lines (66 loc) · 1.44 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
62
63
64
65
66
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": [
"app/**/*.{ts,tsx}",
"source.config.ts",
"next.config.mjs",
"tailwind.config.ts",
"postcss.config.js"
],
"project": ["**/*.{ts,tsx,js,mjs}"],
"paths": {
"@/*": ["./"],
"@ui/*": ["./packages/ui/src/*"],
"@utils/*": ["./packages/utils/src/*"],
"@core/*": ["./packages/core/src/*"]
},
"ignoreDependencies": [
"@knip/*",
"@types/*",
"@radix-ui/react-select",
"@radix-ui/react-radio-group",
"cheerio",
"gray-matter",
"shiki",
"fumadocs-mdx"
],
"ignoreBinaries": ["ajv"],
"rules": {
"classMembers": "warn",
"enumMembers": "warn",
"types": "warn",
"exports": "warn",
"files": "warn",
"dependencies": "error",
"duplicates": "error",
"nsExports": "warn",
"nsTypes": "warn"
},
"ignore": [
"**/*.test.{ts,tsx}",
"**/*.spec.{ts,tsx}",
"**/__tests__/**",
"**/node_modules/**",
".next/**",
".source/**",
"coverage/**",
"content/**",
"public/**",
"types/**/*.d.ts"
],
"workspaces": {
".": {
"entry": ["app/**/*.{ts,tsx}", "lib/**/*.{ts,tsx}"]
},
"packages/ui": {
"entry": ["src/index.ts", "src/**/*.{ts,tsx}"],
"ignore": ["src/**/*.stories.tsx"]
},
"packages/utils": {
"entry": ["src/index.ts", "src/**/*.{ts,tsx}"]
},
"packages/core": {
"entry": ["src/index.ts", "src/**/*.{ts,tsx}"]
}
}
}