Skip to content

Commit bac6057

Browse files
committed
Prettier fix 🚨
1 parent 3e90cef commit bac6057

File tree

23 files changed

+103
-152
lines changed

23 files changed

+103
-152
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* eslint-env node */
1818

19-
module.exports = function( grunt ) {
19+
module.exports = function ( grunt ) {
2020
'use strict';
2121

2222
// prettier-ignore

plugin/assets/src/block-editor/blocks/cards-collection/components/focused-card-controls.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ const FocusedCardControls = ( {
6969
</div>
7070

7171
<span className="card-number-title">
72-
{ // translators: %s: Card number.
73-
sprintf( __( 'Card #%d', 'material-design' ), cardIndex + 1 ) }
72+
{
73+
// translators: %s: Card number.
74+
sprintf( __( 'Card #%d', 'material-design' ), cardIndex + 1 )
75+
}
7476
</span>
7577

7678
<div className="remove-card">

plugin/assets/src/block-editor/blocks/image-list/components/gallery.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ const Gallery = ( {
9191
};
9292
} else {
9393
itemStyles = {
94-
width: `calc(100% / ${ desktopColumns } - ${ desktopGutter +
95-
1 / desktopColumns }px)`,
94+
width: `calc(100% / ${ desktopColumns } - ${
95+
desktopGutter + 1 / desktopColumns
96+
}px)`,
9697
margin: `${ desktopGutter / 2 }px`,
9798
};
9899
}

plugin/assets/src/block-editor/components/url-input-popover/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const UrlInputPopover = ( {
7676
icon="admin-links"
7777
/>
7878
{ onChange &&
79-
! disableSuggestions && ( // Auto-suggestions for inputting url.
79+
! disableSuggestions && ( // Auto-suggestions for inputting url.
8080
<URLInput
8181
className="material-design-url-input-control__input"
8282
value={ value }
@@ -85,7 +85,7 @@ const UrlInputPopover = ( {
8585
/>
8686
) }
8787
{ onChange &&
88-
disableSuggestions && ( // Plain text control for inputting url.
88+
disableSuggestions && ( // Plain text control for inputting url.
8989
<TextControl
9090
className="material-design-url-input-control__input material-design-url-input-control__input--plain"
9191
value={ value }

plugin/assets/src/customizer/components/color-control/color-a11y.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ const ColorVariation = ( {
114114

115115
return (
116116
<>
117-
{ // translators: %s is size of the color variation.
118-
sprintf( __( '%s text: ', 'material-design' ), size ) }
117+
{
118+
// translators: %s is size of the color variation.
119+
sprintf( __( '%s text: ', 'material-design' ), size )
120+
}
119121
{ textColor }
120122
{ __( ' text not legible ', 'material-design' ) }
121123
<span style={ { backgroundColor: colorHex, color: textColorHex } }>

plugin/assets/src/customizer/components/google-fonts-control/styles.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
import { __ } from '@wordpress/i18n';
2121

2222
export const STYLES = {
23-
'100': __( 'Thin', 'material-design' ),
24-
'200': __( 'Extra Light', 'material-design' ),
25-
'300': __( 'Light', 'material-design' ),
23+
100: __( 'Thin', 'material-design' ),
24+
200: __( 'Extra Light', 'material-design' ),
25+
300: __( 'Light', 'material-design' ),
2626
regular: __( 'Regular', 'material-design' ),
27-
'500': __( 'Medium', 'material-design' ),
28-
'600': __( 'Semi Bold', 'material-design' ),
29-
'700': __( 'Bold', 'material-design' ),
30-
'800': __( 'Extra Bold', 'material-design' ),
31-
'900': __( 'Black', 'material-design' ),
32-
'950': __( 'Extra Black', 'material-design' ),
27+
500: __( 'Medium', 'material-design' ),
28+
600: __( 'Semi Bold', 'material-design' ),
29+
700: __( 'Bold', 'material-design' ),
30+
800: __( 'Extra Bold', 'material-design' ),
31+
900: __( 'Black', 'material-design' ),
32+
950: __( 'Extra Black', 'material-design' ),
3333
// Italics
3434
'100italic': __( 'Thin Italic', 'material-design' ),
3535
'200italic': __( 'Extra Light Italic', 'material-design' ),

plugin/assets/src/customizer/components/material-library/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ export const Overrides = createGlobalStyle`
100100

101101
export const RippleColor = styled.div`
102102
[class*='__ripple']::before {
103-
background-color: ${props => props.primaryColor} !important;
103+
background-color: ${ props => props.primaryColor } !important;
104104
}
105105
`;

plugin/assets/src/customizer/components/reset-card-style/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ const handleClick = event => {
7171
*/
7272
const handleGlobalStyleResetButtonClick = () => {
7373
const api = window.wp.customize;
74-
api.control( 'material_design[card_reset]', function( control ) {
74+
api.control( 'material_design[card_reset]', function ( control ) {
7575
control.container
7676
.find( '.material-global-style-reset' )
77-
.on( 'click', function( /** @type {Event} */ event ) {
77+
.on( 'click', function ( /** @type {Event} */ event ) {
7878
handleClick( event );
7979
} );
8080
} );

plugin/assets/src/customizer/customize-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ import handleGlobalStyleResetButtonClick from './components/reset-card-style';
513513
api.IconRadioControl = api.Control.extend( {
514514
ready() {
515515
const control = this;
516-
$( 'input:radio', control.container ).on( 'change', function() {
516+
$( 'input:radio', control.container ).on( 'change', function () {
517517
control.setting.set( $( this ).val() );
518518
} );
519519
},

plugin/assets/src/customizer/customize-preview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export const COLOR_MODES = {
7373
const defaultModeControls = {};
7474
const darkModeControls = {};
7575

76-
$( function() {
77-
api.preview.bind( 'active', function() {
76+
$( function () {
77+
api.preview.bind( 'active', function () {
7878
api.preview.send( 'materialDesign', {
7979
notificationCount:
8080
_wpCustomizeSettings.values.material_design_notify,

0 commit comments

Comments
 (0)