☕️ Classic, reliable, trusted test framework for Node.js and the browser
Add Knip check for docs site (#5797)
Kelechi Ebiribbfe146099d8
diff --git a/docs/.knip.jsonc b/docs/.knip.jsoncindex 32a327ed..b9fd18a9 100644--- a/docs/.knip.jsonc+++ b/docs/.knip.jsonc@@ -1,7 +1,7 @@{"$schema": "https://unpkg.com/knip@5/schema-jsonc.json",// Entry points marked with ! are analyzed but not reported as unused- "entry": ["src/content/**/*.mdx!", "src/content/config.ts!"],+ "entry": ["src/content/**/*.mdx!"],"project": ["src/**/*.{ts,js,mjs,cjs,astro}"],"astro": {"config": "astro.config.ts",diff --git a/docs/package.json b/docs/package.jsonindex eacfc79d..aceb8959 100644--- a/docs/package.json+++ b/docs/package.json@@ -8,6 +8,7 @@"dev": "astro dev","docs": "cd .. && npm i && cd docs && npm i && npm run generate && npm run build && cp _redirects dist/_redirects","generate": "node _data/supporters.cjs --write-supporters-json",+ "prelint:knip": "npm install","lint:knip": "knip --cache","preview": "astro preview","start": "astro dev"diff --git a/package.json b/package.jsonindex 3afa3005..02d62fee 100644--- a/package.json+++ b/package.json@@ -50,6 +50,7 @@"format:fix": "prettier --write .","lint:installed-check": "installed-check --engine-check --ignore-dev","lint:knip": "knip --cache",+ "lint:knip-docs": "cd docs && npm run lint:knip","lint:code": "eslint . --max-warnings 0","lint": "run-p lint:*","prepublishOnly": "run-s clean build version",