-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path.knip.jsonc
More file actions
76 lines (65 loc) · 1.58 KB
/
.knip.jsonc
File metadata and controls
76 lines (65 loc) · 1.58 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
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://unpkg.com/knip@latest/schema.json",
/**
* Defaults scoped down to dependency checks and others without existing
* issues.
* <https://knip.dev/reference/issue-types>
*/
"include": [
"files",
"dependencies",
"unlisted",
"binaries",
"catalog",
"unresolved",
// "exports",
// "types",
"enumMembers",
"duplicates"
],
"entry": [
"server.js",
// Dynamically imported in server.js
"src/app.js",
"src/groupsApp.js",
// Included by tsconfig.json
"static-site/types.d.ts",
// Other tools, not used by the server
"resourceIndexer/main.js",
"scripts/*.js"
],
// Future-proof to potential TypeScript conversions
"project": [
"src/**/*.{js,ts}",
"static-site/**/*.{ts,tsx,js,jsx,mjs}",
"resourceIndexer/**/*.{js,ts}",
"scripts/**/*.{js,ts}"
],
/*** Plugins ***/
/**
* Custom config is necessary because we rely on configuration cascading.
* <https://knip.dev/reference/plugins/eslint#eslint-v8>
*/
"eslint": {
"config": ["**/.eslintrc.yaml"]
},
/**
* Custom config is necessary because files live under a custom top-level
* folder.
* <https://knip.dev/reference/plugins/typescript>
*/
"typescript": {
"config": ["static-site/tsconfig.json"]
},
/**
* Custom config is necessary because files live under a custom top-level
* folder.
* <https://knip.dev/reference/plugins/next>
*/
"next": {
"config": ["static-site/next.config.{js,ts,cjs,mjs}"],
"entry": [
"static-site/app/**/*.{js,jsx,ts,tsx}"
]
}
}