forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knip.jsonc
55 lines (55 loc) · 2.02 KB
/
knip.jsonc
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
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignoreBinaries": ["create:shared", "install-puppeteer", "pm2"],
"ignoreWorkspaces": ["api-server"], // Ignored based on https://github.com/freeCodeCamp/freeCodeCamp/pull/52330#issuecomment-1807917235
"workspaces": {
".": {
"playwright": [
"playwright.config.ts",
"playwright-mobile.config.ts" // How/where is this file used?
],
"ignore": ["tools/scripts/redirect-gen.ts"] // Referenced in tools/scripts/redirect-gen.ts
},
"api": {
"ignoreDependencies": ["pino-pretty"] // Knip doesn't have a fastify plugin yet
},
"client": {
"entry": ["static/**/*.js"],
"webpack": "webpack-workers.js",
"ignore": [
"**/__mocks__/**",
"tailwind.config.js",
"src/assets/icons/*.tsx" // Ignored based on https://github.com/freeCodeCamp/freeCodeCamp/pull/56244#issuecomment-2367830791
],
"ignoreDependencies": [
"core-js",
// Node.js built-ins need to be ignored
"process",
"util",
"assert",
"@redux-saga/core" // Not referenced, something seems off related to peer dep and types
]
},
"curriculum": {
"ignoreDependencies": ["invariant"] // Used from another workspace: shared/utils/polyvinyl.js
},
"shared": {
"ignore": ["{config,utils}/*.ts"] // Using the same dir for src + outDir files with tsc confuses Knip
},
"tools/challenge-helper-scripts": {
"ignoreBinaries": ["mocha"] // Test setup in this workspace seems to be in need of a checkup
},
"tools/challenge-parser": {
"entry": ["parser/tools/*.js"] // Files not referenced/documented?
},
"tools/client-plugins/browser-scripts": {
"ignoreDependencies": ["sass.js", "xterm", "process", "util"] // Node.js built-ins need to be ignored
},
"tools/scripts/build": {
"entry": ["*.ts"]
},
"tools/scripts/seed-exams": {
"entry": ["add-nano-ids.js"] // Referenced in tools/scripts/seed-exams/README.md
}
}
}