Skip to content

Commit e0fde10

Browse files
feat:added depcheck check
1 parent b3fee52 commit e0fde10

File tree

303 files changed

+4920
-2643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+4920
-2643
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: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
node-version: '22.x'
3636

3737
- name: Install Dependencies
38-
run: npm install
38+
run: npm ci
3939

4040
- name: Count number of lines
4141
run: |
@@ -560,4 +560,27 @@ jobs:
560560
- name: Run docstring compliance check
561561
run: |
562562
source venv/bin/activate
563-
python .github/workflows/scripts/check_docstrings.py --directories .github
563+
python .github/workflows/scripts/check_docstrings.py --directories .github
564+
Check-Dependencies:
565+
name: Check Dependencies
566+
runs-on: ubuntu-latest
567+
needs: [Code-Quality-Checks]
568+
steps:
569+
- name: Checkout the Repository
570+
uses: actions/checkout@v4
571+
572+
- name: Set up Node.js
573+
uses: actions/setup-node@v4
574+
with:
575+
node-version: '22.x'
576+
577+
- name: Cache npm modules
578+
uses: actions/cache@v4
579+
with:
580+
path: ~/.npm
581+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json', 'package.json') }}
582+
- name: Install Dependencies
583+
run: npm ci
584+
585+
- name: Check for Unused and Missing Dependencies
586+
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 .

docs/docs/auto-docs/Actions/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
# Function: default()
66

7-
> **default**(): `JSX.Element`
7+
> **default**(): `Element`
88
99
Defined in: [src/screens/UserPortal/Volunteer/Actions/Actions.tsx:76](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Actions/Actions.tsx#L76)
1010

1111
## Returns
1212

13-
`JSX.Element`
13+
`Element`

docs/docs/auto-docs/App/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Function: default()
66

7-
> **default**(): `JSX.Element`
7+
> **default**(): `Element`
88
99
Defined in: [src/App.tsx:109](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/App.tsx#L109)
1010

@@ -22,6 +22,6 @@ and `Route` components to map different URL paths to corresponding screens and c
2222

2323
## Returns
2424

25-
`JSX.Element`
25+
`Element`
2626

2727
The rendered routes and components of the application.

docs/docs/auto-docs/DeleteUser/functions/default.md

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Admin Docs](/)
2+
3+
***
4+
5+
# Variable: default
6+
7+
> `const` **default**: `React.FC`
8+
9+
Defined in: [src/components/UserProfileSettings/Delete/DeleteUser.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/Delete/DeleteUser.tsx#L44)

docs/docs/auto-docs/GroupChatDetails/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Function: default()
66

7-
> **default**(`__namedParameters`): `JSX.Element`
7+
> **default**(`__namedParameters`): `Element`
88
99
Defined in: [src/components/GroupChatDetails/GroupChatDetails.tsx:85](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/GroupChatDetails/GroupChatDetails.tsx#L85)
1010

@@ -16,4 +16,4 @@ Defined in: [src/components/GroupChatDetails/GroupChatDetails.tsx:85](https://gi
1616

1717
## Returns
1818

19-
`JSX.Element`
19+
`Element`

docs/docs/auto-docs/LoginPortalToggle/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Function: default()
66

7-
> **default**(`__namedParameters`): `JSX.Element`
7+
> **default**(`__namedParameters`): `Element`
88
99
Defined in: [src/components/LoginPortalToggle/LoginPortalToggle.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LoginPortalToggle/LoginPortalToggle.tsx#L37)
1010

@@ -16,4 +16,4 @@ Defined in: [src/components/LoginPortalToggle/LoginPortalToggle.tsx:37](https://
1616

1717
## Returns
1818

19-
`JSX.Element`
19+
`Element`

docs/docs/auto-docs/OrgActionItemCategories/functions/default.md renamed to docs/docs/auto-docs/OrgActionItemCategories/variables/default.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,11 @@
22

33
***
44

5-
# Function: default()
5+
# Variable: default
66

7-
> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode`
7+
> `const` **default**: `FC`\<`InterfaceActionItemCategoryProps`\>
88
99
Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx:77](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx#L77)
1010

1111
Represents the component for managing organization action item categories.
1212
This component allows creating, updating, enabling, and disabling action item categories.
13-
14-
## Parameters
15-
16-
### props
17-
18-
`InterfaceActionItemCategoryProps`
19-
20-
### deprecatedLegacyContext?
21-
22-
`any`
23-
24-
**Deprecated**
25-
26-
**See**
27-
28-
[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods)
29-
30-
## Returns
31-
32-
`ReactNode`

docs/docs/auto-docs/OrgContriCards/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Function: default()
66

7-
> **default**(`props`): `JSX.Element`
7+
> **default**(`props`): `Element`
88
99
Defined in: [src/components/OrgContriCards/OrgContriCards.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgContriCards/OrgContriCards.tsx#L40)
1010

@@ -16,4 +16,4 @@ Defined in: [src/components/OrgContriCards/OrgContriCards.tsx:40](https://github
1616

1717
## Returns
1818

19-
`JSX.Element`
19+
`Element`

docs/docs/auto-docs/OrgContribution/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
# Function: default()
66

7-
> **default**(): `JSX.Element`
7+
> **default**(): `Element`
88
99
Defined in: [src/screens/OrgContribution/OrgContribution.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgContribution/OrgContribution.tsx#L46)
1010

1111
## Returns
1212

13-
`JSX.Element`
13+
`Element`

docs/docs/auto-docs/OrgPeopleListCard/functions/default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Function: default()
66

7-
> **default**(`props`): `JSX.Element`
7+
> **default**(`props`): `Element`
88
99
Defined in: [src/components/OrgPeopleListCard/OrgPeopleListCard.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx#L45)
1010

@@ -16,4 +16,4 @@ Defined in: [src/components/OrgPeopleListCard/OrgPeopleListCard.tsx:45](https://
1616

1717
## Returns
1818

19-
`JSX.Element`
19+
`Element`

docs/docs/auto-docs/OtherSettings/functions/default.md

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Admin Docs](/)
2+
3+
***
4+
5+
# Variable: default
6+
7+
> `const` **default**: `React.FC`
8+
9+
Defined in: [src/components/UserProfileSettings/OtherSetting/OtherSettings.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/OtherSetting/OtherSettings.tsx#L37)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[Admin Docs](/)
2+
3+
***
4+
5+
# PledgeModal
6+
7+
## File
8+
9+
PledgeModal.tsx
10+
11+
## Description
12+
13+
This file defines the `PledgeModal` component, which provides a modal interface for creating or editing pledges
14+
in a campaign. It includes form fields for selecting pledgers, specifying pledge amounts, currencies, and dates.
15+
The component supports internationalization and integrates with GraphQL mutations and queries for data handling.
16+
17+
## Interfaces
18+
19+
- [InterfacePledgeModal](interfaces/InterfacePledgeModal-1.md)
20+
21+
## Variables
22+
23+
- [default](variables/default-1.md)

docs/docs/auto-docs/PledgeModal/functions/default.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)