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

Skip to content

Commit 501187e

Browse files
committed
chore: move serviceWorker.ts to knip entry
1 parent db6c7b5 commit 501187e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

site/.knip.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3-
"entry": ["./src/index.tsx"],
3+
"entry": ["./src/index.tsx", "./src/serviceWorker.ts"],
44
"project": ["./src/**/*.ts", "./src/**/*.tsx"],
5-
"ignore": ["**/*Generated.ts", "./src/serviceWorker.ts"],
5+
"ignore": ["**/*Generated.ts"],
66
"ignoreBinaries": ["protoc"],
77
"ignoreDependencies": [
88
"express",

site/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"lint": "pnpm run lint:check && pnpm run lint:types && pnpm run lint:circular-deps && knip",
1717
"lint:check": " biome lint --error-on-warnings .",
1818
"lint:circular-deps": "dpdm --no-tree --no-warning -T ./src/App.tsx",
19-
"lint:fix": " biome lint --error-on-warnings --write .",
19+
"lint:knip": "knip",
20+
"lint:fix": " biome lint --error-on-warnings --write . && knip --fix",
2021
"lint:types": "tsc -p .",
2122
"playwright:install": "playwright install --with-deps chromium",
2223
"playwright:test": "playwright test --config=e2e/playwright.config.ts",
@@ -191,7 +192,11 @@
191192
"vite-plugin-checker": "0.8.0",
192193
"vite-plugin-turbosnap": "1.0.3"
193194
},
194-
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
195+
"browserslist": [
196+
"chrome 110",
197+
"firefox 111",
198+
"safari 16.0"
199+
],
195200
"resolutions": {
196201
"optionator": "0.9.3",
197202
"semver": "7.6.2"
@@ -208,4 +213,4 @@
208213
"prismjs": "1.30.0"
209214
}
210215
}
211-
}
216+
}

0 commit comments

Comments
 (0)