Skip to content

chore: Clean-up contexts, hooks, & stores #118

chore: Clean-up contexts, hooks, & stores

chore: Clean-up contexts, hooks, & stores #118

Triggered via pull request November 13, 2025 08:05
Status Failure
Total duration 32s
Artifacts

quality-checks.yml

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

Annotations

12 errors and 20 warnings
lint-and-type-check (client): client/src/hooks/useApi.tsx#L219
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L207
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L199
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L177
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L70
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L65
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator
lint-and-type-check (client): client/src/hooks/useApi.tsx#L53
React Hook "useSWR" is called conditionally. React Hooks must be called in the exact same order in every component render
lint-and-type-check (server)
The strategy configuration was canceled because "lint-and-type-check.client" failed
lint-and-type-check (server)
The operation was canceled.
lint-and-type-check (client): client/src/hooks/useApi.tsx#L215
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/hooks/useApi.tsx#L215
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/hooks/useApi.tsx#L212
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/hooks/useApi.tsx#L204
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/hooks/useApi.tsx#L199
Unexpected any. Specify a different type
lint-and-type-check (client): client/src/hooks/useApi.tsx#L46
Unexpected console statement
lint-and-type-check (client): client/src/contexts/AuthContext.tsx#L231
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
lint-and-type-check (client): client/src/contexts/AuthContext.tsx#L159
Unexpected console statement
lint-and-type-check (client): client/src/contexts/AuthContext.tsx#L117
React Hook useEffect has missing dependencies: 'state.token' and 'state.userObjectId'. Either include them or remove the dependency array
lint-and-type-check (client): client/src/components/Header.tsx#L41
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L103
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L103
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L86
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L85
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L38
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L37
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L12
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/survey/mongoose/survey.hooks.ts#L12
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/seed/mongoose/seed.hooks.ts#L7
Unexpected any. Specify a different type
lint-and-type-check (server): server/src/database/seed/mongoose/seed.hooks.ts#L7
Unexpected any. Specify a different type