Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ jobs:
echo "Error: Source and Target Branches are the same. Please ensure they are different."
echo "Error: Close this PR and try again."
exit 1


- name: Check for unused files, exports and dependencies
run: npx knip

Check-Sensitive-Files:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Checks if sensitive files have been changed without authorization
Expand Down
5 changes: 5 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"project": ["src/**/*.{ts,tsx}", "docs/**/*.{md,mdx}"],
"ignoreDependencies": ["docusaurus", "@docusaurus/plugin-content-docs"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-tsdoc": "^0.5.0",
"husky": "^9.1.7",
"knip": "^5.71.0",
"lint-staged": "^16.2.7",
"typescript": "~5.9.3"
},
Expand Down
Loading
Loading