Skip to content

New block: Modal block using the Interactivity API #1131

New block: Modal block using the Interactivity API

New block: Modal block using the Interactivity API #1131

Triggered via pull request December 17, 2024 16:31
Status Success
Total duration 45s
Artifacts

linters.yml

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

Annotations

17 warnings
Lint everything
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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