Skip to content

Commit 6789c72

Browse files
committed
Merge pull request #555 from ndycode/claude/audit-38-knip-config
chore: add a tuned knip config and drop the unused @fast-check/vitest
2 parents 2009353 + 4bbb78b commit 6789c72

3 files changed

Lines changed: 51 additions & 25 deletions

File tree

knip.jsonc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@6.16.1/schema.json",
3+
"entry": [
4+
"index.ts",
5+
"lib/index.ts",
6+
"lib/auth/index.ts",
7+
"lib/request/index.ts",
8+
"lib/codex-cli/index.ts",
9+
"lib/ui/index.ts",
10+
"scripts/*.{js,mjs}",
11+
"test/**/*.test.ts",
12+
"test/helpers/**/*.ts"
13+
],
14+
"project": [
15+
"lib/**/*.ts",
16+
"scripts/**/*.{js,mjs}",
17+
"index.ts",
18+
"test/**/*.ts"
19+
],
20+
"ignore": [
21+
"bench/**",
22+
"vendor/**",
23+
"dist/**",
24+
"docs/**"
25+
],
26+
"ignoreBinaries": [
27+
"powershell.exe",
28+
"pbcopy",
29+
"where"
30+
],
31+
"ignoreDependencies": [
32+
// Editor-only LSP tooling; never imported.
33+
"typescript-language-server",
34+
// The official Codex CLI this package wraps: resolved from the HOST
35+
// install at runtime (scripts/codex-bin-resolver.js), deliberately not
36+
// a package.json dependency.
37+
"@openai/codex"
38+
],
39+
// Export/type-level findings are warn-only on purpose: the blocking signal
40+
// is unused FILES and DEPENDENCIES. The export backlog was cleared
41+
// incrementally (PRs #556/#557, down to two documented keepers); escalate a
42+
// rule to "error" once its warning count is intentionally pinned at zero.
43+
"rules": {
44+
"exports": "warn",
45+
"types": "warn",
46+
"nsExports": "warn",
47+
"nsTypes": "warn",
48+
"duplicates": "warn",
49+
"enumMembers": "warn"
50+
}
51+
}

package-lock.json

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156
"node": ">=18.17.0"
157157
},
158158
"devDependencies": {
159-
"@fast-check/vitest": "^0.2.4",
160159
"@types/node": "^20.19.42",
161160
"@typescript-eslint/eslint-plugin": "^8.56.0",
162161
"@typescript-eslint/parser": "^8.56.0",

0 commit comments

Comments
 (0)