Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Fix lint warnings #1033

Fix lint warnings

Fix lint warnings #1033

Re-run triggered February 27, 2024 11:16
Status Failure
Total duration 1m 44s
Artifacts

main.yml

on: push
node-tests-and-build
53s
node-tests-and-build
Fit to window
Zoom out
Zoom in

Annotations

1 error and 12 warnings
docker-release
buildx failed with: ERROR: failed to solve: failed to push ghcr.io/vocdoni/explorer-ui:master-static: unexpected status from POST request to https://ghcr.io/v2/vocdoni/explorer-ui/blobs/uploads/: 403 Forbidden
node-tests-and-build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
node-tests-and-build: components/blocks/question-results.tsx#L77
Unexpected any. Specify a different type
node-tests-and-build: components/blocks/question-results.tsx#L155
Unexpected any. Specify a different type
node-tests-and-build: components/pages/app/page-templates/list-page-jump-to.tsx#L17
Unexpected any. Specify a different type
node-tests-and-build: hooks/use-pagination-router.tsx#L30
React Hook useEffect has missing dependencies: 'isFirstRender', 'router.pathname', and 'routerPage'. Either include them or remove the dependency array
node-tests-and-build: hooks/use-pagination-router.tsx#L34
React Hook useEffect has missing dependencies: 'currentPage' and 'onPageChange'. Either include them or remove the dependency array. If 'onPageChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
node-tests-and-build: hooks/use-voconi-sdk.tsx#L20
Unexpected any. Specify a different type
node-tests-and-build: hooks/use-voconi-sdk.tsx#L47
React Hook useCallback has a missing dependency: 'setAlertMessage'. Either include it or remove the dependency array
node-tests-and-build: hooks/use-voconi-sdk.tsx#L73
React Hook useCallback has missing dependencies: 'property' and 'stats'. Either include them or remove the dependency array. If 'setPropertyState' needs the current value of 'property', you can also switch to useReducer instead of useState and read 'property' in the reducer
node-tests-and-build: lib/client.ts#L31
Unexpected any. Specify a different type
node-tests-and-build: lib/util.ts#L1
Unexpected any. Specify a different type
docker-release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, docker/setup-buildx-action@v2, docker/login-action@v2, docker/build-push-action@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.