Skip to content

No Mongo : GitHUb Action to Check Unused Dependencies #3938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"ignores": [
"GraphQl",
"screens",
"subComponents",
"setup",
"state",
"utils",
"style",
"components",
"assets",
"Constant",
"types",
"expect",
"react-router",
"identity-obj-proxy",
"@babel/plugin-proposal-private-property-in-object",
"@graphql-tools/graphql-file-loader",
"@graphql-tools/load",
"@graphql-tools/schema",
"@types/jest",
"@types/node-fetch",
"babel-jest",
"eslint-plugin-jest",
"postcss-modules",
"@vitest/coverage-istanbul",
"typedoc-plugin-markdown",
"whatwg-fetch",
"markdown-toc"
]
}
25 changes: 24 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
node-version: '22.x'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Count number of lines
run: |
Expand Down Expand Up @@ -561,3 +561,26 @@ jobs:
run: |
source venv/bin/activate
python .github/workflows/scripts/check_docstrings.py --directories .github
Check-Dependencies:
name: Check Dependencies
runs-on: ubuntu-latest
needs: [Code-Quality-Checks]
steps:
- name: Checkout the Repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Cache npm modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json', 'package.json') }}
- name: Install Dependencies
run: npm ci

- name: Check for Unused and Missing Dependencies
run: npm run check-dependencies
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

npm run generate-docs
npm run format:fix
# npm run lint:fix
npm run lint-staged
npm run typecheck
npm run update:toc
npm run check-dependencies

git add .
git add .
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/Actions/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

# Function: default()

> **default**(): `JSX.Element`
> **default**(): `Element`

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)

## Returns

`JSX.Element`
`Element`
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/App/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Function: default()

> **default**(): `JSX.Element`
> **default**(): `Element`

Defined in: [src/App.tsx:109](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/App.tsx#L109)

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

## Returns

`JSX.Element`
`Element`

The rendered routes and components of the application.
27 changes: 0 additions & 27 deletions docs/docs/auto-docs/DeleteUser/functions/default.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/docs/auto-docs/DeleteUser/variables/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: default

> `const` **default**: `React.FC`

Defined in: [src/components/UserProfileSettings/Delete/DeleteUser.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/Delete/DeleteUser.tsx#L44)
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/GroupChatDetails/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Function: default()

> **default**(`__namedParameters`): `JSX.Element`
> **default**(`__namedParameters`): `Element`

Defined in: [src/components/GroupChatDetails/GroupChatDetails.tsx:85](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/GroupChatDetails/GroupChatDetails.tsx#L85)

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

## Returns

`JSX.Element`
`Element`
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/LoginPortalToggle/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Function: default()

> **default**(`__namedParameters`): `JSX.Element`
> **default**(`__namedParameters`): `Element`

Defined in: [src/components/LoginPortalToggle/LoginPortalToggle.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LoginPortalToggle/LoginPortalToggle.tsx#L37)

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

## Returns

`JSX.Element`
`Element`
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,11 @@

***

# Function: default()
# Variable: default

> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode`
> `const` **default**: `FC`\<`InterfaceActionItemCategoryProps`\>

Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx:77](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx#L77)

Represents the component for managing organization action item categories.
This component allows creating, updating, enabling, and disabling action item categories.

## Parameters

### props

`InterfaceActionItemCategoryProps`

### deprecatedLegacyContext?

`any`

**Deprecated**

**See**

[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods)

## Returns

`ReactNode`
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/OrgContriCards/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Function: default()

> **default**(`props`): `JSX.Element`
> **default**(`props`): `Element`

Defined in: [src/components/OrgContriCards/OrgContriCards.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgContriCards/OrgContriCards.tsx#L40)

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

## Returns

`JSX.Element`
`Element`
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/OrgContribution/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

# Function: default()

> **default**(): `JSX.Element`
> **default**(): `Element`

Defined in: [src/screens/OrgContribution/OrgContribution.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgContribution/OrgContribution.tsx#L46)

## Returns

`JSX.Element`
`Element`
4 changes: 2 additions & 2 deletions docs/docs/auto-docs/OrgPeopleListCard/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Function: default()

> **default**(`props`): `JSX.Element`
> **default**(`props`): `Element`

Defined in: [src/components/OrgPeopleListCard/OrgPeopleListCard.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx#L45)

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

## Returns

`JSX.Element`
`Element`
27 changes: 0 additions & 27 deletions docs/docs/auto-docs/OtherSettings/functions/default.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/docs/auto-docs/OtherSettings/variables/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: default

> `const` **default**: `React.FC`

Defined in: [src/components/UserProfileSettings/OtherSetting/OtherSettings.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/OtherSetting/OtherSettings.tsx#L37)
23 changes: 23 additions & 0 deletions docs/docs/auto-docs/PledgeModal/README-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[Admin Docs](/)

***

# PledgeModal

## File

PledgeModal.tsx

## Description

This file defines the `PledgeModal` component, which provides a modal interface for creating or editing pledges
in a campaign. It includes form fields for selecting pledgers, specifying pledge amounts, currencies, and dates.
The component supports internationalization and integrates with GraphQL mutations and queries for data handling.

## Interfaces

- [InterfacePledgeModal](interfaces/InterfacePledgeModal-1.md)

## Variables

- [default](variables/default-1.md)
29 changes: 0 additions & 29 deletions docs/docs/auto-docs/PledgeModal/functions/default.md

This file was deleted.

Loading
Loading