Skip to content

Commit a8d68ab

Browse files
Run knip in CI (#265)
1 parent 5fde870 commit a8d68ab

5 files changed

Lines changed: 66 additions & 62 deletions

File tree

knip.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"treatConfigHintsAsErrors": true,
4+
5+
"ignoreBinaries": ["mint", "open"],
6+
"ignoreDependencies": [
7+
"@tanstack/react-router-ssr-query",
8+
"@tanstack/router-plugin",
9+
"@testing-library/dom",
10+
"@testing-library/react",
11+
"jsdom",
12+
"postgres",
13+
"web-vitals"
14+
],
315
"ignoreExportsUsedInFile": {
416
"interface": true,
517
"type": true
618
},
7-
"tags": ["-lintignore"],
8-
"workspaces": {
9-
".": {}
19+
"ignoreFiles": [
20+
"**/openworkflow.config.*",
21+
"openworkflow/**/*.ts",
22+
"packages/dashboard/src/components/ui/*.tsx",
23+
"packages/docs/style.css"
24+
],
25+
"ignoreIssues": {
26+
"packages/dashboard/src/components/ui/*.tsx": ["exports"],
27+
"packages/openworkflow/workflow.ts": ["duplicates"]
1028
}
1129
}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"scripts": {
1111
"build": "turbo build",
12-
"ci": "npm run format && npm run build && npm run lint && npm run lint:duplication && npm run typecheck && npm run test:coverage",
12+
"ci": "npm run format && npm run build && npm run lint && npm run lint:duplication && npm run knip && npm run typecheck && npm run test:coverage",
1313
"ci:bun": "bun run build && bun run test:bun",
1414
"db:migrate": "tsx ./packages/openworkflow/postgres/scripts/db-migrate.ts",
1515
"db:reset": "tsx ./packages/openworkflow/postgres/scripts/db-reset.ts",

packages/dashboard/src/components/stats-card.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)