Skip to content

Commit 3b58579

Browse files
feat: added depcheck checks
1 parent dbd152c commit 3b58579

File tree

5 files changed

+8603
-12078
lines changed

5 files changed

+8603
-12078
lines changed

.depcheckrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"ignores": [
3+
"GraphQl",
4+
"screens",
5+
"subComponents",
6+
"setup",
7+
"state",
8+
"utils",
9+
"style",
10+
"components",
11+
"assets",
12+
"Constant",
13+
"types",
14+
"expect",
15+
"@types/jest",
16+
"@types/mocha",
17+
"markdown-toc",
18+
"typedoc-plugin-markdown"
19+
]
20+
}

.github/workflows/pull-request.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,3 +544,26 @@ jobs:
544544
run: |
545545
source venv/bin/activate
546546
python .github/workflows/scripts/check_docstrings.py --directories .github
547+
548+
Check-Dependencies:
549+
name: Check Dependencies
550+
runs-on: ubuntu-latest
551+
needs: [Code-Quality-Checks]
552+
steps:
553+
- name: Checkout the Repository
554+
uses: actions/checkout@v4
555+
556+
- name: Set up Node.js
557+
uses: actions/setup-node@v4
558+
with:
559+
node-version: '22.x'
560+
561+
- name: Install Dependencies
562+
run: npm install
563+
564+
- name: Check for Unused and Missing Dependencies
565+
run: npm run check-dependencies
566+
567+
568+
569+

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
npm run generate-docs
33
npm run format:fix
4-
# npm run lint:fix
54
npm run lint-staged
65
npm run typecheck
76
npm run update:toc
7+
npm run check-dependencies
88

99
git add .

0 commit comments

Comments
 (0)