Skip to content
Prev Previous commit
Next Next commit
Fix lint
Some of these "fixes" are simply disabling lint for the offending lines.
These currently unused variables may be used in a later PR, so I'm
leaving them in, for now, to help simplify reconciling the changes from
the former refactor PR.
  • Loading branch information
mkevins committed May 4, 2021
commit 5fcb570c5ded856be33535c979a3244e48722614
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export class BlockList extends Component {
isStackedHorizontally,
horizontalAlignment,
contentResizeMode,
// eslint-disable-next-line no-unused-vars
blockWidth,
numColumns,
} = this.props;
Expand All @@ -226,8 +227,11 @@ export class BlockList extends Component {
marginHorizontal: isRootList ? 0 : -marginHorizontal,
};

// eslint-disable-next-line no-unused-vars
const isContentStretch = contentResizeMode === 'stretch';
// eslint-disable-next-line no-unused-vars
const isMultiBlocks = blockClientIds.length > 1;
// eslint-disable-next-line no-unused-vars
const { isWider } = alignmentHelpers;

return (
Expand Down
6 changes: 4 additions & 2 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import { concat, find } from 'lodash';
*/
import { compose } from '@wordpress/compose';
import {
// eslint-disable-next-line no-unused-vars
BaseControl,
PanelBody,
SelectControl,
ToggleControl,
withNotices,
RangeControl,
// eslint-disable-next-line no-unused-vars
Spinner,
} from '@wordpress/components';
import {
Expand Down Expand Up @@ -490,7 +492,7 @@ function GalleryEdit( props ) {
hideCancelButton={ true }
/>
) }
{/* { ! imageSizeOptions && (
{ /* { ! imageSizeOptions && (
<BaseControl className={ 'gallery-image-sizes' }>
<BaseControl.VisualLabel>
{ __( 'Image size' ) }
Expand All @@ -500,7 +502,7 @@ function GalleryEdit( props ) {
{ __( 'Loading options…' ) }
</View>
</BaseControl>
) } */}
) } */ }
</PanelBody>
</InspectorControls>
{ noticeUI }
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/gallery/gallery.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const Gallery = ( props ) => {
imageCount,
align,
columns = defaultColumnsNumber( imageCount ),
// eslint-disable-next-line no-unused-vars
imageCrop,
} = attributes;

Expand Down