Skip to content

Commit

Permalink
Bump @wordpress/eslint-plugin from 5.0.1 to 5.1.0 (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Apr 30, 2020
1 parent fe8ce49 commit 779bad4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion assets/src/edit-story/components/canvas/displayElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) || {};
Expand Down
1 change: 0 additions & 1 deletion assets/src/edit-story/components/canvas/editElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<Output element={rest} box={{ width: 100, height: 100 }} />
Expand Down
1 change: 0 additions & 1 deletion assets/src/edit-story/output/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 779bad4

Please sign in to comment.