Skip to content

Remove explicit-function-return-type suppressions in engagement dashboard hooks #39165

@Agarwalchetan

Description

@Agarwalchetan

Several hooks inside the engagement dashboard disable the ESLint rule @typescript-eslint/explicit-function-return-type using inline suppressions.

This reduces type safety and introduces inconsistency with other hooks in the codebase that explicitly annotate their return types.


Affected Files

Located in:

apps/meteor/client/views/admin/engagementDashboard/

The following hooks currently suppress the rule:

  • useChannelsList.ts
  • useActiveUsers.ts
  • useMessageOrigins.ts
  • useMessagesSent.ts
  • useHourlyChatActivity.ts
  • useTopFivePopularChannels.ts
  • useUsersByTimeOfTheDay.ts
  • useWeeklyChatActivity.ts

Each file contains:

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions