Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a75993a

Browse files
committed
chore: add knip as dev dep and create config
1 parent 22b932a commit a75993a

File tree

3 files changed

+123
-5
lines changed

3 files changed

+123
-5
lines changed

site/.knip.jsonc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": [
4+
"./src/index.tsx"
5+
],
6+
"project": [
7+
"./src/**/*.ts",
8+
"./src/**/*.tsx"
9+
],
10+
"ignore": [
11+
"**/*Generated.ts"
12+
]
13+
}

site/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lint": "pnpm run lint:check && pnpm run lint:types && pnpm run lint:circular-deps",
1717
"lint:check": " biome lint --error-on-warnings .",
1818
"lint:circular-deps": "dpdm --no-tree --no-warning -T ./src/App.tsx",
19+
"lint:knip": "knip",
1920
"lint:fix": " biome lint --error-on-warnings --write .",
2021
"lint:types": "tsc -p .",
2122
"playwright:install": "playwright install --with-deps chromium",
@@ -181,6 +182,7 @@
181182
"jest-location-mock": "2.0.0",
182183
"jest-websocket-mock": "2.5.0",
183184
"jest_workaround": "0.1.14",
185+
"knip": "5.51.0",
184186
"msw": "2.4.8",
185187
"postcss": "8.5.1",
186188
"protobufjs": "7.4.0",
@@ -198,7 +200,11 @@
198200
"vite-plugin-checker": "0.8.0",
199201
"vite-plugin-turbosnap": "1.0.3"
200202
},
201-
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
203+
"browserslist": [
204+
"chrome 110",
205+
"firefox 111",
206+
"safari 16.0"
207+
],
202208
"resolutions": {
203209
"optionator": "0.9.3",
204210
"semver": "7.6.2"
@@ -215,4 +221,4 @@
215221
"prismjs": "1.30.0"
216222
}
217223
}
218-
}
224+
}

site/pnpm-lock.yaml

+102-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)