diff --git a/assets/src/edit-story/components/canvas/displayElement.js b/assets/src/edit-story/components/canvas/displayElement.js index 20c62ca7161c..b12a69820ace 100644 --- a/assets/src/edit-story/components/canvas/displayElement.js +++ b/assets/src/edit-story/components/canvas/displayElement.js @@ -77,7 +77,6 @@ function DisplayElement({ element, previewMode, page }) { : null; const { id, opacity, type, isBackground } = element; - //eslint-disable-next-line @wordpress/no-unused-vars-before-return const { Display } = getDefinitionForType(type); const { Display: Replacement } = getDefinitionForType(replacement?.type) || {}; diff --git a/assets/src/edit-story/components/canvas/editElement.js b/assets/src/edit-story/components/canvas/editElement.js index 207568941825..e921cd11ad3a 100644 --- a/assets/src/edit-story/components/canvas/editElement.js +++ b/assets/src/edit-story/components/canvas/editElement.js @@ -47,7 +47,6 @@ function EditElement({ element }) { actions: { getBox }, } = useUnits(); - //eslint-disable-next-line @wordpress/no-unused-vars-before-return const { Edit } = getDefinitionForType(type); const box = getBox(element); diff --git a/assets/src/edit-story/components/canvas/useCanvasSelectionCopyPaste.js b/assets/src/edit-story/components/canvas/useCanvasSelectionCopyPaste.js index 3af8c32e2bb9..5e2c93fc4e91 100644 --- a/assets/src/edit-story/components/canvas/useCanvasSelectionCopyPaste.js +++ b/assets/src/edit-story/components/canvas/useCanvasSelectionCopyPaste.js @@ -82,7 +82,6 @@ function useCanvasSelectionCopyPaste(container) { const htmlContent = selectedElements .map(({ type, ...rest }) => { - // eslint-disable-next-line @wordpress/no-unused-vars-before-return const { Output } = getDefinitionForType(type); return renderToStaticMarkup( diff --git a/assets/src/edit-story/output/element.js b/assets/src/edit-story/output/element.js index 2a6451c2d1c9..cb239c9b2392 100644 --- a/assets/src/edit-story/output/element.js +++ b/assets/src/edit-story/output/element.js @@ -26,7 +26,6 @@ import WithLink from '../components/link/output'; function OutputElement({ element }) { const { id, opacity, type } = element; - // eslint-disable-next-line @wordpress/no-unused-vars-before-return const { Output } = getDefinitionForType(type); // Box is calculated based on the 100%:100% basis for width and height diff --git a/package-lock.json b/package-lock.json index da89e62482ec..735d588812ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7452,9 +7452,9 @@ } }, "@wordpress/eslint-plugin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-5.0.1.tgz", - "integrity": "sha512-aIWfYjZ0ahDhapjrX6ZbbXc9JJZPT+1BikMG8eMRw7I3F3mfEB1SmflEmNMlf72fhhq/ZkeSGSxnkHB0+NSoig==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-5.1.0.tgz", + "integrity": "sha512-uWQ7eXezwnWqj3MUOeeNEkUY7o5zEHG4uX+PL0WgHlM6dZIl65Ae5/KoItOst9t5053RHQV+0rOMMbup9KPHGQ==", "dev": true, "requires": { "@wordpress/prettier-config": "^0.2.0", diff --git a/package.json b/package.json index e2f1a01b4423..db8e680ba93e 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@wordpress/babel-plugin-import-jsx-pragma": "^2.5.0", "@wordpress/dependency-extraction-webpack-plugin": "^2.6.0", "@wordpress/e2e-test-utils": "^4.6.0", - "@wordpress/eslint-plugin": "^5.0.1", + "@wordpress/eslint-plugin": "^5.1.0", "@wordpress/jest-console": "^3.6.0", "@wordpress/jest-puppeteer-axe": "^1.8.0", "amphtml-validator": "^1.0.30",