Show the actual filesize of the selected image size slug, if known #31
Annotations
74 errors and 1 warning
src/index.js#L230
[prettier/prettier] Insert `↹`
|
src/index.js#L231
[prettier/prettier] Insert `↹`
|
src/index.js#L232
[prettier/prettier] Replace `onClick={·()·=>·selectBlock(·blocksByAttributeId[·attachment.id·]·)·` with `↹onClick={·()·=>⏎↹↹↹↹↹↹↹↹↹↹selectBlock(⏎↹↹↹↹↹↹↹↹↹↹↹blocksByAttributeId[·attachment.id·]⏎↹↹↹↹↹↹↹↹↹↹)⏎↹↹↹↹↹↹↹↹↹`
|
src/index.js#L233
[prettier/prettier] Insert `↹`
|
src/index.js#L1
[import/no-extraneous-dependencies] 'react' should be listed in the project's dependencies. Run 'npm i -S react' to add it
|
src/index.js#L234
[prettier/prettier] Replace `{·__(·'Select·associated·block',·'hm-media-weight'·` with `↹{·__(⏎↹↹↹↹↹↹↹↹↹↹'Select·associated·block',⏎↹↹↹↹↹↹↹↹↹↹'hm-media-weight'⏎↹↹↹↹↹↹↹↹↹`
|
src/index.js#L18
[prettier/prettier] Replace `·blocks.reduce(⏎↹` with `⏎↹blocks.reduce(·`
|
src/index.js#L235
[prettier/prettier] Replace `↹↹↹↹↹↹↹</Button>·)·:·''` with `↹↹↹↹↹↹↹↹</Button>⏎↹↹↹↹↹↹↹)·:·(⏎↹↹↹↹↹↹↹↹''⏎↹↹↹↹↹↹↹)`
|
src/index.js#L27
[prettier/prettier] Replace `⏎↹[]⏎` with `·[]·`
|
src/index.js#L237
[prettier/prettier] Replace `·attachment.media_type·===·'image'·?·__(·'Image',·'hm-media-weight'·)·` with `⏎↹↹↹↹↹↹↹attachment.media_type·===·'image'⏎↹↹↹↹↹↹↹↹?·__(·'Image',·'hm-media-weight'·)⏎↹↹↹↹↹↹↹↹`
|
src/index.js#L32
[prettier/prettier] Replace `·getMediaBlocks(·select(·blockEditorStore·).getBlocks()·)·` with `⏎↹↹getMediaBlocks(·select(·blockEditorStore·).getBlocks()·)⏎↹`
|
src/index.js#L244
[prettier/prettier] Replace `·` with `⏎↹↹↹↹↹↹↹↹`
|
src/index.js#L33
[prettier/prettier] Replace `·select(·'core/editor'·).getEditedPostAttribute(·'featured_media'·)·` with `⏎↹↹select(·'core/editor'·).getEditedPostAttribute(·'featured_media'·)⏎↹`
|
src/index.js#L246
[prettier/prettier] Replace `·` with `⏎↹↹↹↹↹↹↹↹`
|
src/index.js#L35
[no-shadow] 'imageIds' is already declared in the upper scope on line 34 column 10.
|
src/index.js#L251
[prettier/prettier] Replace `·` with `⏎↹↹↹↹↹↹↹`
|
src/index.js#L36
[no-shadow] 'videoIds' is already declared in the upper scope on line 34 column 20.
|
src/index.js#L252
[prettier/prettier] Replace `↹↹↹↹↹↹↹?·(·attachment?.media_details?.sizes?.thumbnail?.source_url·||·attachment.source_url·)` with `↹↹↹↹↹↹↹↹?·attachment?.media_details?.sizes?.thumbnail⏎↹↹↹↹↹↹↹↹↹↹?.source_url·||·attachment.source_url`
|
src/index.js#L253
[prettier/prettier] Insert `↹`
|
src/index.js#L37
[no-shadow] 'blocksByAttributeId' is already declared in the upper scope on line 34 column 30.
|
src/index.js#L256
[prettier/prettier] Replace `·key={·`media-details-${·attachment.id·}`·}` with `⏎↹↹↹↹↹↹↹↹key={·`media-details-${·attachment.id·}`·}⏎↹↹↹↹↹↹↹`
|
src/index.js#L38
[prefer-const] 'block' is never reassigned. Use 'const' instead.
|
src/index.js#L267
[prettier/prettier] Replace `·{` with `{·'·'·}`
|
src/index.js#L54
[prettier/prettier] Replace `·` with `⏎↹↹`
|
src/index.js#L268
[prettier/prettier] Replace `↹(·mediaSize·<·MB_IN_B·)` with `{·mediaSize·<·MB_IN_B`
|
src/index.js#L55
[prettier/prettier] Insert `↹`
|
src/index.js#L269
[prettier/prettier] Replace `↹↹↹↹↹↹↹↹↹↹↹↹↹?·`${·(·mediaSize·/·KB_IN_B` with `↹↹↹↹↹↹↹↹↹↹↹↹?·`${·(⏎↹↹↹↹↹↹↹↹↹↹↹↹↹↹mediaSize·/·KB_IN_B⏎↹↹↹↹↹↹↹↹↹↹↹↹·`
|
src/index.js#L270
[prettier/prettier] Replace `↹:·`${·(·mediaSize·/·MB_IN_B·).toFixed(·2·)·}mb`⏎↹↹↹↹↹↹↹↹↹↹↹` with `:·`${·(⏎↹↹↹↹↹↹↹↹↹↹↹↹↹↹mediaSize·/·MB_IN_B⏎↹↹↹↹↹↹↹↹↹↹↹↹··).toFixed(·2·)·}mb`·`
|
src/index.js#L56
[prettier/prettier] Insert `↹`
|
src/index.js#L275
[prettier/prettier] Insert `⏎↹↹↹↹↹↹↹↹↹↹`
|
src/index.js#L57
[prettier/prettier] Insert `↹`
|
src/index.js#L276
[prettier/prettier] Replace `<a·href={·attachment.link·}>Go·to·the·attachment·post·›</a>` with `⏎↹↹↹↹↹↹↹↹↹↹↹<a·href={·attachment.link·}>⏎↹↹↹↹↹↹↹↹↹↹↹↹Go·to·the·attachment·post⏎↹↹↹↹↹↹↹↹↹↹↹↹›⏎↹↹↹↹↹↹↹↹↹↹↹</a>⏎↹↹↹↹↹↹↹↹↹↹`
|
src/index.js#L58
[prettier/prettier] Replace `·` with `⏎↹↹`
|
src/index.js#L278
[prettier/prettier] Replace `·style={·{·display:·'none',·margin:·'0.5rem·0·1rem'·}·}` with `⏎↹↹↹↹↹↹↹↹↹↹style={·{⏎↹↹↹↹↹↹↹↹↹↹↹display:·'none',⏎↹↹↹↹↹↹↹↹↹↹↹margin:·'0.5rem·0·1rem',⏎↹↹↹↹↹↹↹↹↹↹}·}⏎↹↹↹↹↹↹↹↹↹`
|
src/index.js#L59
[prettier/prettier] Insert `↹`
|
src/index.js#L279
[prettier/prettier] Replace `{·__(·'View·entity·record·JSON',·'hm-media-weight'·)·}` with `⏎↹↹↹↹↹↹↹↹↹↹↹{·__(⏎↹↹↹↹↹↹↹↹↹↹↹↹'View·entity·record·JSON',⏎↹↹↹↹↹↹↹↹↹↹↹↹'hm-media-weight'⏎↹↹↹↹↹↹↹↹↹↹↹)·}⏎↹↹↹↹↹↹↹↹↹↹`
|
src/index.js#L60
[prettier/prettier] Insert `↹`
|
src/index.js#L282
[prettier/prettier] Replace `·attachment,·null,·2·` with `⏎↹↹↹↹↹↹↹↹↹↹↹↹↹attachment,⏎↹↹↹↹↹↹↹↹↹↹↹↹↹null,⏎↹↹↹↹↹↹↹↹↹↹↹↹↹2⏎↹↹↹↹↹↹↹↹↹↹↹↹`
|
src/index.js#L61
[prettier/prettier] Insert `↹`
|
src/index.js#L80
[jsdoc/check-tag-names] Invalid JSDoc tag (preference). Replace "returns" JSDoc tag with "return".
|
src/index.js#L104
[jsdoc/check-tag-names] Invalid JSDoc tag (preference). Replace "returns" JSDoc tag with "return".
|
src/index.js#L114
[no-unused-vars] 'args' is defined but never used.
|
src/index.js#L121
[prettier/prettier] Insert `,`
|
src/index.js#L138
[prettier/prettier] Replace `·` with `⏎↹↹↹↹`
|
src/index.js#L139
[prettier/prettier] Replace `·(·block·)·=>·block.clientId·===·associatedBlockClientId·` with `⏎↹↹↹↹(·block·)·=>·block.clientId·===·associatedBlockClientId⏎↹↹↹`
|
src/index.js#L140
[prettier/prettier] Replace `·attachment?.media_details?.sizes?.[·associatedBlock?.attributes?.sizeSlug·` with `⏎↹↹↹↹attachment?.media_details?.sizes?.[⏎↹↹↹↹↹associatedBlock?.attributes?.sizeSlug⏎↹↹↹↹`
|
src/index.js#L152
[prettier/prettier] Replace `⏎↹↹↹.map(·` with `.map(⏎↹↹↹`
|
src/index.js#L155
[prettier/prettier] Replace `·` with `⏎↹↹`
|
src/index.js#L165
[no-shadow] 'imagesSize' is already declared in the upper scope on line 124 column 6.
|
src/index.js#L165
[no-shadow] 'videosSize' is already declared in the upper scope on line 125 column 6.
|
src/index.js#L169
[prettier/prettier] Replace `(·mediaThreshold·/·2·)` with `mediaThreshold·/·2`
|
src/index.js#L171
[prettier/prettier] Replace `(·mediaThreshold·/·2·)` with `mediaThreshold·/·2`
|
src/index.js#L177
[prettier/prettier] Replace `·` with `⏎↹↹↹`
|
src/index.js#L178
[prettier/prettier] Insert `↹`
|
src/index.js#L179
[prettier/prettier] Insert `↹`
|
src/index.js#L180
[prettier/prettier] Replace `__(·'Warning!·The·media·in·this·page·exceeds·the·recommended·threshold·of·%fmb',·'hm-media-weight'·` with `↹__(⏎↹↹↹↹↹↹↹'Warning!·The·media·in·this·page·exceeds·the·recommended·threshold·of·%fmb',⏎↹↹↹↹↹↹↹'hm-media-weight'⏎↹↹↹↹↹↹`
|
src/index.js#L180
[@wordpress/i18n-translator-comments] Translation function with placeholders is missing preceding translator comment
|
src/index.js#L181
[prettier/prettier] Insert `↹`
|
src/index.js#L182
[prettier/prettier] Insert `↹`
|
src/index.js#L183
[prettier/prettier] Insert `↹`
|
src/index.js#L184
[prettier/prettier] Insert `↹`
|
src/index.js#L188
[prettier/prettier] Replace `{·__(·'Images·total',·'hm-media-weight'·)·}:·{·(·imagesSize·/·MB_IN_B·).toFixed(·2·)·}mb` with `⏎↹↹↹↹↹{·__(·'Images·total',·'hm-media-weight'·)·}:{·'·'·}⏎↹↹↹↹↹{·(·imagesSize·/·MB_IN_B·).toFixed(·2·)·}mb⏎↹↹↹↹`
|
src/index.js#L189
[prettier/prettier] Replace `{·__(·'Videos·total',·'hm-media-weight'·)·}:·{·(·videosSize·/·MB_IN_B·).toFixed(·2·)·}mb` with `⏎↹↹↹↹↹{·__(·'Videos·total',·'hm-media-weight'·)·}:{·'·'·}⏎↹↹↹↹↹{·(·videosSize·/·MB_IN_B·).toFixed(·2·)·}mb⏎↹↹↹↹`
|
src/index.js#L192
[prettier/prettier] Delete `·`
|
src/index.js#L193
[prettier/prettier] Delete `·style={`
|
src/index.js#L194
[prettier/prettier] Insert `style={·`
|
src/index.js#L198
[prettier/prettier] Insert `,`
|
src/index.js#L199
[prettier/prettier] Insert `}·`
|
src/index.js#L200
[prettier/prettier] Delete `}`
|
src/index.js#L208
[prettier/prettier] Insert `;`
|
src/index.js#L215
[prettier/prettier] Replace `·className={·SIDEBAR_NAME·}·name={·SIDEBAR_NAME·}·title={·__(·'Media·Weight',·'hm-media-weight'·)·}` with `⏎↹↹↹↹className={·SIDEBAR_NAME·}⏎↹↹↹↹name={·SIDEBAR_NAME·}⏎↹↹↹↹title={·__(·'Media·Weight',·'hm-media-weight'·)·}⏎↹↹↹`
|
src/index.js#L229
[prettier/prettier] Replace `·` with `⏎↹↹↹↹↹↹↹`
|
node / Node (22)
72 errors and 0 warnings
|
node / Node (22)
Process completed with exit code 1.
|
node / Node (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|