forked from blockprotocol/blockprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.knip.jsonc
54 lines (54 loc) · 1.63 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
{
"$schema": "https://unpkg.com/knip@1/schema.json",
"ignore": ["**/*.d.ts"],
"ignoreBinaries": ["docker-compose"],
"ignoreDependencies": [
"@local/eslint-config",
"eslint-import-resolver-typescript"
],
"workspaces": {
".": {
"ignore": "infra"
},
"apps/site": {
"entry": [
// This workspace uses the Next.js plugin including its default entry points, the rest is manual:
"scripts/*.ts",
// Currently unused files, here to stay:
"src/components/hiring-banner.tsx"
],
"project": "**/*.{ts,tsx}",
"eslint": false
},
"crates/type-system": {
"entry": "scripts/build-wasm.ts",
"eslint": false
},
// The dynamic setup of this workspace with the usage of `require()` in `.eslintrc.cjs` is a tough cookie for Knip,
// thinking every workspace uses all ESLint plugins. That's why Knip's ESLint plugin is disabled everywhere else.
// This resulted in two false positives: eslint-import-resolver-typescript for this workspace, and
// @local/eslint-config for the others.
"libs/@local/eslint-config": {
"entry": [],
"project": [],
"eslint": "index.js"
},
"libs/@local/tsconfig": {
"typescript": ["*.json", "!package.json"]
},
"libs/@local/package-chores": {
"entry": "scripts/*.ts",
"project": "scripts/**/*.ts",
"eslint": false
},
"libs/@blockprotocol/core": {
"eslint": false
},
"libs/mock-block-dock": {
"entry": ["src/index.ts", "dev/dev-app.tsx"],
"project": "**/*.{ts,tsx}",
"webpack": "dev/webpack.config.js",
"eslint": false
}
}
}