Skip to content

enhance/748: Updates to expand/condense text functionality #1693

enhance/748: Updates to expand/condense text functionality

enhance/748: Updates to expand/condense text functionality #1693

Triggered via pull request May 29, 2024 15:30
Status Failure
Total duration 48s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L176
Missing JSDoc @param "resizingType" declaration
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L176
Missing JSDoc @param "selectedBlock" declaration
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L180
'resizingType' is already declared in the upper scope on line 130 column 33
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L180
'selectedBlock' is already declared in the upper scope on line 119 column 10
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L181
Replace `⏎↹↹↹resizeContentStore⏎↹↹` with `·resizeContentStore·`
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L189
Replace `⏎↹↹↹resizeContentStore⏎↹↹` with `·resizeContentStore·`
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L361
Replace `{·sprintf(·__(·'None·of·these·suggestions·are·ideal,·please',·'classifai'·)·)·}·<Button·onClick={·()·=>·refreshResults(·resizingType,·selectedBlock·)·}·variant='link'>{·sprintf(·__(·'retry·%s',·'classifai'·),·'grow'·===·resizingType·?·__(·'expanding·the·text',·'classifai'·)·:·__(·'condensing·the·text',·'classifai'·)·)·}</Button>` with `⏎↹↹↹↹{·sprintf(⏎↹↹↹↹↹__(⏎↹↹↹↹↹↹'None·of·these·suggestions·are·ideal,·please',⏎↹↹↹↹↹↹'classifai'⏎↹↹↹↹↹)⏎↹↹↹↹)·}{·'·'·}⏎↹↹↹↹<Button⏎↹↹↹↹↹onClick={·()·=>⏎↹↹↹↹↹↹refreshResults(·resizingType,·selectedBlock·)⏎↹↹↹↹↹}⏎↹↹↹↹↹variant="link"⏎↹↹↹↹>⏎↹↹↹↹↹{·sprintf(⏎↹↹↹↹↹↹__(·'retry·%s',·'classifai'·),⏎↹↹↹↹↹↹'grow'·===·resizingType⏎↹↹↹↹↹↹↹?·__(·'expanding·the·text',·'classifai'·)⏎↹↹↹↹↹↹↹:·__(·'condensing·the·text',·'classifai'·)⏎↹↹↹↹↹)·}⏎↹↹↹↹</Button>⏎↹↹↹`
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L361
sprintf must be called with placeholder value argument(s)
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L361
Translation function with placeholders is missing preceding translator comment
eslint
Process completed with exit code 1.
eslint: src/js/gutenberg-plugins/content-resizing-plugin.js#L165
React Hook useEffect has a missing dependency: 'getResizedContent'. Either include it or remove the dependency array