Change logic of the useVIewCartPixel hook #459
Annotations
7 errors and 4 warnings
Lint project:
react/Minicart.tsx#L69
Replace `variation·===·'drawer'·?·isDrawerOpen·:·open,·orderForm?.items` with `⏎····variation·===·'drawer'·?·isDrawerOpen·:·open,⏎····orderForm?.items⏎··`
|
Lint project:
react/modules/useViewCartPixel.tsx#L4
There should be at least one empty line between import groups
|
Lint project:
react/modules/useViewCartPixel.tsx#L5
`debounce` import should occur before import of `./pixelHelper`
|
Lint project:
react/modules/useViewCartPixel.tsx#L20
'pushViewCart' was used before it was defined
|
Lint project:
react/modules/useViewCartPixel.tsx#L21
React Hook useEffect has a missing dependency: 'pushViewCart'. Either include it or remove the dependency array
|
Lint project:
react/modules/useViewCartPixel.tsx#L27
Expected property shorthand
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint project:
react/typings/vtex.store-drawer.d.ts#L2
Unexpected any. Specify a different type
|
Get yarn cache directory path
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading