Use getValues for bindings #1927
lint.yml
on: pull_request
eslint, prettier, wp-scripts
39s
phpcs
27s
Psalm
25s
Dependaban
11s
Annotations
10 errors and 1 warning
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/filters/withBlockBinding.tsx#L14
'getMismatchedAttributes' is defined but never used
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/filters/withBlockBinding.tsx#L83
'index' is assigned a value but never used
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L16
`./config/constants` import should occur before import of `./hooks/useRemoteData`
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L67
Replace `queryKey:·string,·blockName:·string,·queryInputs:·Record<string,·string>)·=>·`${blockName}:${queryKey}:${JSON.stringify(queryInputs·??·{})` with `⏎↹queryKey:·string,⏎↹blockName:·string,⏎↹queryInputs:·Record<·string,·string·>⏎)·=>·`${·blockName·}:${·queryKey·}:${·JSON.stringify(·queryInputs·??·{}·)·`
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L71
Unsafe member access .type on an `any` value
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L76
Unsafe return of an `any` typed value
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L76
Replace `·...state,·[·queryDataStateKey(action.queryKey,·action.blockName,·action.queryInputs)·]:·action.data·` with `⏎↹↹↹↹↹...state,⏎↹↹↹↹↹[·queryDataStateKey(·action.queryKey,·action.blockName,·action.queryInputs·)·]:⏎↹↹↹↹↹↹action.data,⏎↹↹↹↹`
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L76
Unsafe assignment of an `any` value
|
eslint, prettier, wp-scripts:
src/blocks/remote-data-container/index.ts#L76
Unsafe argument of type `any` assigned to a parameter of type `string`
|
Dependaban
The Ubuntu-20.04 brownout takes place from 2025-02-01. For more details, see https://github.com/actions/runner-images/issues/11101
|