Skip to content

Commit 1ea11f2

Browse files
feat:added depcheck checks
1 parent dbd152c commit 1ea11f2

File tree

5 files changed

+2648
-448
lines changed

5 files changed

+2648
-448
lines changed

.depcheckrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
"identity-obj-proxy",
16+
"@babel/plugin-proposal-private-property-in-object",
17+
"@graphql-tools/graphql-file-loader",
18+
"@graphql-tools/load",
19+
"@graphql-tools/schema",
20+
"@types/jest",
21+
"@types/node-fetch",
22+
"babel-jest",
23+
"eslint-plugin-jest",
24+
"postcss-modules",
25+
"@vitest/coverage-istanbul",
26+
"typedoc-plugin-markdown",
27+
"whatwg-fetch",
28+
"markdown-toc"
29+
]
30+
}

.github/workflows/pull-request.yml

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

.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)