Skip to content

Add useApi hook

Add useApi hook #35

Triggered via push May 21, 2024 13:49
Status Failure
Total duration 2h 40m 45s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
Linting
@edw/next-drupal#lint: command (/home/runner/work/next-drupal/next-drupal/packages/next-drupal) /opt/hostedtoolcache/node/20.13.1/x64/bin/pnpm run lint exited (1)
Linting: packages/next-drupal/src/hooks/useApi.ts#L24
Expected "get" to come before "put"
Linting
Process completed with exit code 1.
Linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linting: packages/next-drupal/src/components/blocks/FacetedSearch/SearchInput.tsx#L31
React Hook useCallback has unnecessary dependencies: 'id' and 'onChange'. Either exclude them or remove the dependency array