Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Bring back knip

Blue Mouse32c5f132bcf0
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 649d3416f..9bd3514b2 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -59,6 +59,6 @@ jobs:
- name: Web TypeScript Validation
run: npm run typecheck
working-directory: web
- # - name: Web Knip Validation
- # run: npm run knip
- # working-directory: web
+ - name: Web Knip Validation
+ run: npm run knip
+ working-directory: web
diff --git a/web/knip.jsonc b/web/knip.jsonc
index c2c71dbb2..7ff961f60 100644
--- a/web/knip.jsonc
+++ b/web/knip.jsonc
@@ -1,8 +1,8 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
- "ignoreDependencies": ["eslint-plugin-jsx-a11y", "@typescript-eslint/typescript-estree", "@typescript-eslint/parser", "@tailwindcss/forms", "@tailwindcss/typography", "tailwindcss", "@react-router/fs-routes"],
+ "ignoreDependencies": ["@typescript-eslint/typescript-estree", "@tailwindcss/forms", "@tailwindcss/typography", "tailwindcss", "eslint-import-resolver-node", "@types/ua-parser-js"],
"ignoreBinaries": ["flyctl"],
- "ignore": ["./ecosystem.config.js", "./app/routes.ts", "./react-router.config.ts"],
+ "ignore": ["./ecosystem.config.js", "./app/routes.ts", "./react-router.config.ts", "./app/routes/[robots.txt].tsx"],
"entry": ["./app/root.tsx"],
"project": ["./app/**/*.{js,ts,tsx,jsx,cjs}"],
"paths": {