Skip to content

Server Refactor

Server Refactor #53

Triggered via pull request October 20, 2025 22:53
Status Failure
Total duration 36s
Artifacts

quality-checks.yml

on: pull_request
Matrix: lint-and-type-check
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 20 warnings
lint-and-type-check (server)
Process completed with exit code 1.
lint-and-type-check (server): server/src/types/auth.ts#L33
An interface declaring no members is equivalent to its supertype
lint-and-type-check (client)
The strategy configuration was canceled because "lint-and-type-check.server" failed
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L127
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L113
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/Profile/AdminEditProfile.tsx#L82
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/PastEntries/SurveyEdit.tsx#L61
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/PastEntries/SurveyDetails.tsx#L128
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
lint-and-type-check (client): client/src/pages/PastEntries/PastEntries.tsx#L94
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read
lint-and-type-check (client): client/src/pages/CompletedSurvey/QrPage.tsx#L27
Prefer using an optional chain expression instead, as it's more concise and easier to read
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L73
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/pages/AdminDashboard/NewUser.tsx#L51
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (server): server/src/utils/authTokenHandler.ts#L32
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/types/models.ts#L22
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/middleware/validate.ts#L7
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/middleware/auth.ts#L75
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L89
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L88
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L32
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L31
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L7
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L7
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L83
React Hook useEffect has missing dependencies: 'navigate' and 'onLogout'. Either include them or remove the dependency array. If 'onLogout' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L68
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L67
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L66
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L65
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/pages/AdminDashboard/StaffDashboard.tsx#L64
Unexpected any. Specify a different type