Skip to content

Commit 9da5605

Browse files
committedOct 24, 2024
chore: add knip
1 parent 81bc24d commit 9da5605

File tree

9 files changed

+388
-277
lines changed

9 files changed

+388
-277
lines changed
 

‎.typesyncrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ignorePackages": [
3+
"@types/eslint"
4+
]
5+
}

‎apps/gpa-calculator/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"devDependencies": {
4141
"@eslint-types/unicorn": "^52.0.0",
4242
"@total-typescript/ts-reset": "^0.6.1",
43-
"@types/eslint": "~9.6.1",
4443
"@vite-pwa/assets-generator": "^0.2.6",
4544
"browserslist": "^4.24.2",
4645
"browserslist-to-esbuild": "^2.1.1",

‎apps/gpa-calculator/src/data/data-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ const newCourse = z
3434
}),
3535
);
3636

37-
export { type Course, courseSchema, newCourse };
37+
export { type Course, newCourse };

‎apps/phs-map/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"devDependencies": {
4545
"@eslint-types/unicorn": "^52.0.0",
4646
"@total-typescript/ts-reset": "^0.6.1",
47-
"@types/eslint": "~9.6.1",
4847
"@types/pathfinding": "^0.0.9",
4948
"@vite-pwa/assets-generator": "^0.2.6",
5049
"browserslist": "^4.24.2",

‎apps/phs-map/src/data/data-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ type GWing = "G";
106106
*/
107107
type HWing = "H";
108108

109-
export type { Coords, Coords2D, Level, Lvl, Rooms, StairList, Wing };
109+
export type { Coords2D, Level, Lvl, Rooms, StairList };

‎knip.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"workspaces": {
4+
"apps/*": {
5+
"entry": ["src/script.ts", "src/sw.ts"],
6+
"project": ["**/*.{js,cjs,mjs,ts,cts,mts}"]
7+
},
8+
"apps/gpa-calculator": {
9+
"entry": ["src/script.ts", "src/sw.ts"],
10+
"project": ["**/*.{js,cjs,mjs,ts,cts,mts}"],
11+
"ignore": ["tailwind.config.ts"]
12+
}
13+
},
14+
"ignore": [".pnpmfile.cjs"],
15+
"ignoreDependencies": ["@commitlint/cli", "@eslint-types/*"]
16+
}

‎package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"prepare": "husky",
1010
"format": "prettier . --write",
1111
"format:check": "prettier . --check",
12+
"knip": "knip",
1213
"manypkg": "manypkg check",
1314
"typesync": "typesync",
1415
"typesync:check": "typesync --dry=fail",
@@ -20,6 +21,7 @@
2021
"@commitlint/config-conventional": "^19.5.0",
2122
"@manypkg/cli": "^0.21.4",
2223
"husky": "^9.1.6",
24+
"knip": "^5.34.0",
2325
"prettier": "3.3.3",
2426
"turbo": "^2.2.3",
2527
"typesync": "^0.13.0"

‎pnpm-lock.yaml

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

‎turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@
107107
".pnpmfile.cjs"
108108
],
109109
"outputs": ["**/node_modules/"]
110-
}
110+
},
111+
"//#knip": {}
111112
},
112113
"remoteCache": {
113114
"enabled": false

0 commit comments

Comments
 (0)