Skip to content

Fix rendering callout blocks as notice blocks, again #1104

Fix rendering callout blocks as notice blocks, again

Fix rendering callout blocks as notice blocks, again #1104

Triggered via pull request October 24, 2024 21:25
Status Success
Total duration 43s
Artifacts

linters.yml

on: pull_request
Lint everything
35s
Lint everything
Fit to window
Zoom out
Zoom in

Annotations

17 warnings
Lint everything
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b, actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Lint everything
The `save-state` 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/
Lint everything
The `save-state` 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/
Lint everything
The `save-state` 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/
Lint everything
The `save-state` 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/
Lint everything
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/
Lint everything
The `save-state` 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/
Lint everything: mu-plugins/blocks/google-map/src/components/main.js#L84
React Hook useCallback has missing dependencies: 'searchFormAction' and 'throttledRedrawMap'. Either include them or remove the dependency array
Lint everything: mu-plugins/blocks/google-map/src/components/map.js#L66
Assignments to the 'combinedMarkers' variable from inside React Hook useCallback will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useCallback
Lint everything: mu-plugins/blocks/google-map/src/components/map.js#L103
Assignments to the 'combinedMarkers' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
Lint everything: mu-plugins/blocks/horizontal-slider/src/block.js#L86
The ref value 'outerRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'outerRef.current' to a variable inside the effect, and use that variable in the cleanup function
Lint everything: mu-plugins/blocks/horizontal-slider/src/block.js#L88
React Hook useEffect has a missing dependency: 'innerContainerWidth'. Either include it or remove the dependency array
Lint everything: mu-plugins/blocks/screenshot-preview/src/block.js#L56
React Hook useEffect has a missing dependency: 'aspectRatio'. Either include it or remove the dependency array. If 'setFrameHeight' needs the current value of 'aspectRatio', you can also switch to useReducer instead of useState and read 'aspectRatio' in the reducer
Lint everything: mu-plugins/blocks/screenshot-preview/src/in-view.js#L31
React Hook useEffect has a missing dependency: 'isVisible'. Either include it or remove the dependency array
Lint everything: mu-plugins/blocks/screenshot-preview/src/screenshot.js#L104
React Hook useEffect has a missing dependency: 'fetchImage'. Either include it or remove the dependency array
Lint everything: mu-plugins/blocks/time/src/index.js#L39
React Hook useCallback does nothing when called with only one argument. Did you forget to pass an array of dependencies?
Lint everything: mu-plugins/blocks/time/src/index.js#L77
React Hook useEffect has missing dependencies: 'onChange' and 'value'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback