diff --git a/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/template-selector-control.js b/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/template-selector-control.js index 1b280b8fa2ae0..d54ad34e5582a 100644 --- a/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/template-selector-control.js +++ b/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/template-selector-control.js @@ -77,7 +77,4 @@ export const TemplateSelectorControl = ( { ); }; -export default compose( - memo, - withInstanceId -)( TemplateSelectorControl ); +export default compose( memo, withInstanceId )( TemplateSelectorControl ); diff --git a/apps/notifications/src/panel/templates/button-back.jsx b/apps/notifications/src/panel/templates/button-back.jsx index e090c0be23383..201fd11e2e181 100644 --- a/apps/notifications/src/panel/templates/button-back.jsx +++ b/apps/notifications/src/panel/templates/button-back.jsx @@ -46,7 +46,4 @@ const mapDispatchToProps = { unselectNote: actions.ui.unselectNote, }; -export default connect( - null, - mapDispatchToProps -)( localize( BackButton ) ); +export default connect( null, mapDispatchToProps )( localize( BackButton ) ); diff --git a/apps/notifications/src/panel/templates/button-edit.jsx b/apps/notifications/src/panel/templates/button-edit.jsx index 083c613638cb6..5dddf4b9f79f1 100644 --- a/apps/notifications/src/panel/templates/button-edit.jsx +++ b/apps/notifications/src/panel/templates/button-edit.jsx @@ -37,7 +37,4 @@ EditButton.propTypes = { translate: PropTypes.func.isRequired, }; -export default connect( - null, - { editComment } -)( localize( EditButton ) ); +export default connect( null, { editComment } )( localize( EditButton ) ); diff --git a/apps/notifications/src/panel/templates/comment-reply-input.jsx b/apps/notifications/src/panel/templates/comment-reply-input.jsx index 8602067792e82..ee2e2306113ac 100644 --- a/apps/notifications/src/panel/templates/comment-reply-input.jsx +++ b/apps/notifications/src/panel/templates/comment-reply-input.jsx @@ -341,9 +341,6 @@ const mapDispatchToProps = { unselectNote: actions.ui.unselectNote, }; -export default connect( - mapStateToProps, - mapDispatchToProps, - null, - { pure: false } -)( localize( CommentReplyInput ) ); +export default connect( mapStateToProps, mapDispatchToProps, null, { pure: false } )( + localize( CommentReplyInput ) +); diff --git a/apps/notifications/src/panel/templates/index.jsx b/apps/notifications/src/panel/templates/index.jsx index a1d3749f5f4ce..db01d3035a55f 100644 --- a/apps/notifications/src/panel/templates/index.jsx +++ b/apps/notifications/src/panel/templates/index.jsx @@ -537,7 +537,4 @@ const mapDispatchToProps = { unselectNote: actions.ui.unselectNote, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( Layout ); +export default connect( mapStateToProps, mapDispatchToProps )( Layout ); diff --git a/apps/notifications/src/panel/templates/list-header.jsx b/apps/notifications/src/panel/templates/list-header.jsx index e916e7b775f7d..68e2355c13077 100644 --- a/apps/notifications/src/panel/templates/list-header.jsx +++ b/apps/notifications/src/panel/templates/list-header.jsx @@ -24,7 +24,4 @@ const mapDispatchToProps = { viewSettings: actions.ui.viewSettings, }; -export default connect( - null, - mapDispatchToProps -)( ListHeader ); +export default connect( null, mapDispatchToProps )( ListHeader ); diff --git a/apps/notifications/src/panel/templates/note-list.jsx b/apps/notifications/src/panel/templates/note-list.jsx index e59bf9d047b79..cb47a92e5aa24 100644 --- a/apps/notifications/src/panel/templates/note-list.jsx +++ b/apps/notifications/src/panel/templates/note-list.jsx @@ -372,9 +372,6 @@ const mapDispatchToProps = { selectNote: actions.ui.selectNote, }; -export default connect( - mapStateToProps, - mapDispatchToProps, - null, - { forwardRef: true } -)( localize( NoteList ) ); +export default connect( mapStateToProps, mapDispatchToProps, null, { forwardRef: true } )( + localize( NoteList ) +); diff --git a/apps/notifications/src/panel/templates/note.jsx b/apps/notifications/src/panel/templates/note.jsx index 494d22770ea08..290a06723b2d3 100644 --- a/apps/notifications/src/panel/templates/note.jsx +++ b/apps/notifications/src/panel/templates/note.jsx @@ -75,9 +75,4 @@ const mapStateToProps = ( state, { note } ) => ( { isRead: getIsNoteRead( state, note ), } ); -export default connect( - mapStateToProps, - null, - null, - { forwardRef: true } -)( Note ); +export default connect( mapStateToProps, null, null, { forwardRef: true } )( Note ); diff --git a/apps/notifications/src/panel/templates/summary-in-list.jsx b/apps/notifications/src/panel/templates/summary-in-list.jsx index 512f2ca5fe892..7a86fd1042760 100644 --- a/apps/notifications/src/panel/templates/summary-in-list.jsx +++ b/apps/notifications/src/panel/templates/summary-in-list.jsx @@ -66,19 +66,8 @@ export class SummaryInList extends React.Component { } const mapDispatchToProps = dispatch => ( { - selectNote: compose( - dispatch, - actions.ui.selectNote - ), - unselectNote: compose( - dispatch, - actions.ui.unselectNote - ), + selectNote: compose( dispatch, actions.ui.selectNote ), + unselectNote: compose( dispatch, actions.ui.unselectNote ), } ); -export default connect( - null, - mapDispatchToProps, - null, - { pure: false } -)( SummaryInList ); +export default connect( null, mapDispatchToProps, null, { pure: false } )( SummaryInList ); diff --git a/apps/notifications/src/panel/templates/undo-list-item.jsx b/apps/notifications/src/panel/templates/undo-list-item.jsx index c580363389c58..241c1817218b1 100644 --- a/apps/notifications/src/panel/templates/undo-list-item.jsx +++ b/apps/notifications/src/panel/templates/undo-list-item.jsx @@ -205,9 +205,6 @@ const mapDispatchToProps = { undoAction: actions.ui.undoAction, }; -export default connect( - mapStateToProps, - mapDispatchToProps, - null, - { pure: false } -)( localize( UndoListItem ) ); +export default connect( mapStateToProps, mapDispatchToProps, null, { pure: false } )( + localize( UndoListItem ) +); diff --git a/client/auth/login.jsx b/client/auth/login.jsx index 837b4c882218a..6f98871b7e7f6 100644 --- a/client/auth/login.jsx +++ b/client/auth/login.jsx @@ -170,9 +170,6 @@ export class Auth extends Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Auth ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Auth ) ); diff --git a/client/blocks/app-banner/index.jsx b/client/blocks/app-banner/index.jsx index cab7348d02d4c..477483cc84037 100644 --- a/client/blocks/app-banner/index.jsx +++ b/client/blocks/app-banner/index.jsx @@ -265,7 +265,4 @@ const mapDispatchToProps = { ), }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( AppBanner ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( AppBanner ) ); diff --git a/client/blocks/comments/comment-actions.jsx b/client/blocks/comments/comment-actions.jsx index f7072bbef24b7..21a1715c42a11 100644 --- a/client/blocks/comments/comment-actions.jsx +++ b/client/blocks/comments/comment-actions.jsx @@ -149,7 +149,4 @@ const mapDispatchToProps = ( dispatch, ownProps ) => { }; }; -export default connect( - null, - mapDispatchToProps -)( localize( CommentActions ) ); +export default connect( null, mapDispatchToProps )( localize( CommentActions ) ); diff --git a/client/blocks/comments/comment-edit-form.jsx b/client/blocks/comments/comment-edit-form.jsx index 0742e1cd5ec45..af3a7aeaa7c0a 100644 --- a/client/blocks/comments/comment-edit-form.jsx +++ b/client/blocks/comments/comment-edit-form.jsx @@ -200,7 +200,4 @@ PostCommentForm.defaultProps = { const mapDispatchToProps = dispatch => bindActionCreators( { editComment }, dispatch ); -export default connect( - null, - mapDispatchToProps -)( PostCommentForm ); +export default connect( null, mapDispatchToProps )( PostCommentForm ); diff --git a/client/blocks/disconnect-jetpack/docs/example.jsx b/client/blocks/disconnect-jetpack/docs/example.jsx index 16fb90f1f7c1c..281d4fa2777f7 100644 --- a/client/blocks/disconnect-jetpack/docs/example.jsx +++ b/client/blocks/disconnect-jetpack/docs/example.jsx @@ -70,7 +70,7 @@ class DisconnectJetpackDialogExample extends Component {

{ this.props.children } diff --git a/client/blocks/gdpr-banner/index.jsx b/client/blocks/gdpr-banner/index.jsx index f889b80b9f741..4d63828e8db18 100644 --- a/client/blocks/gdpr-banner/index.jsx +++ b/client/blocks/gdpr-banner/index.jsx @@ -127,7 +127,4 @@ const mapDispatchToProps = { ), }; -export default connect( - null, - mapDispatchToProps -)( GdprBanner ); +export default connect( null, mapDispatchToProps )( GdprBanner ); diff --git a/client/blocks/get-apps/apps-badge.jsx b/client/blocks/get-apps/apps-badge.jsx index beae12f42560d..e0155a2d45ae9 100644 --- a/client/blocks/get-apps/apps-badge.jsx +++ b/client/blocks/get-apps/apps-badge.jsx @@ -125,9 +125,6 @@ export class AppsBadge extends PureComponent { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( AppsBadge ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( AppsBadge ) ); diff --git a/client/blocks/get-apps/desktop-download-card.jsx b/client/blocks/get-apps/desktop-download-card.jsx index 9ea64408e978f..84655fb00b088 100644 --- a/client/blocks/get-apps/desktop-download-card.jsx +++ b/client/blocks/get-apps/desktop-download-card.jsx @@ -207,7 +207,4 @@ const mapDispatchToProps = { trackLinuxDebClick: () => recordTracksEvent( 'calypso_app_download_linux_deb_click' ), }; -export default connect( - null, - mapDispatchToProps -)( localize( DesktopDownloadCard ) ); +export default connect( null, mapDispatchToProps )( localize( DesktopDownloadCard ) ); diff --git a/client/blocks/global-notice/index.js b/client/blocks/global-notice/index.js index 9e83a5e94ada5..b3c5bd745df07 100644 --- a/client/blocks/global-notice/index.js +++ b/client/blocks/global-notice/index.js @@ -36,10 +36,7 @@ export class GlobalNotice extends Component { } } -export const InfoNotice = connect( - null, - { - displayNotice: infoNotice, - removeNotice, - } -)( GlobalNotice ); +export const InfoNotice = connect( null, { + displayNotice: infoNotice, + removeNotice, +} )( GlobalNotice ); diff --git a/client/blocks/image-selector/preview.jsx b/client/blocks/image-selector/preview.jsx index 21010a075dc03..ad840e2fed892 100644 --- a/client/blocks/image-selector/preview.jsx +++ b/client/blocks/image-selector/preview.jsx @@ -69,7 +69,12 @@ export class ImageSelectorPreview extends Component { // already have the data for the media item, so first update the state this.updateImageState( () => { const { itemIds, siteId } = this.props; - if ( isEqual( this.state.images.map( image => image.ID ), itemIds ) ) { + if ( + isEqual( + this.state.images.map( image => image.ID ), + itemIds + ) + ) { return; } diff --git a/client/blocks/inline-help/index.jsx b/client/blocks/inline-help/index.jsx index 54723f3d2b229..0d7396a4364b4 100644 --- a/client/blocks/inline-help/index.jsx +++ b/client/blocks/inline-help/index.jsx @@ -219,7 +219,4 @@ const mapDispatchToProps = { hideChecklistPrompt, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( InlineHelp ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( InlineHelp ) ); diff --git a/client/blocks/inline-help/inline-help-rich-result.jsx b/client/blocks/inline-help/inline-help-rich-result.jsx index 19063f18b8fa1..1ecbad829fb03 100644 --- a/client/blocks/inline-help/inline-help-rich-result.jsx +++ b/client/blocks/inline-help/inline-help-rich-result.jsx @@ -131,7 +131,4 @@ const mapDispatchToProps = { openSupportArticleDialog, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( InlineHelpRichResult ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( InlineHelpRichResult ) ); diff --git a/client/blocks/inline-help/inline-help-search-card.jsx b/client/blocks/inline-help/inline-help-search-card.jsx index a25814579720c..faafe0e6b6046 100644 --- a/client/blocks/inline-help/inline-help-search-card.jsx +++ b/client/blocks/inline-help/inline-help-search-card.jsx @@ -102,7 +102,4 @@ const mapDispatchToProps = { selectPreviousResult, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( InlineHelpSearchCard ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( InlineHelpSearchCard ) ); diff --git a/client/blocks/inline-help/popover.jsx b/client/blocks/inline-help/popover.jsx index 7ca85f7bffd22..b16d3e41ca239 100644 --- a/client/blocks/inline-help/popover.jsx +++ b/client/blocks/inline-help/popover.jsx @@ -393,8 +393,5 @@ const mapDispatchToProps = { export default compose( localize, - connect( - mapStateToProps, - mapDispatchToProps - ) + connect( mapStateToProps, mapDispatchToProps ) )( InlineHelpPopover ); diff --git a/client/blocks/jitm/index.jsx b/client/blocks/jitm/index.jsx index fc233d566568f..320b3a5e0ceed 100644 --- a/client/blocks/jitm/index.jsx +++ b/client/blocks/jitm/index.jsx @@ -51,7 +51,4 @@ const mapDispatchToProps = dispatch => ( { dispatch( dismissJetpackJITM( siteId, id, featureClass ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( JITM ); +export default connect( mapStateToProps, mapDispatchToProps )( JITM ); diff --git a/client/blocks/location-search/docs/example.jsx b/client/blocks/location-search/docs/example.jsx index 3d89f1bc07c34..28ca70b342936 100644 --- a/client/blocks/location-search/docs/example.jsx +++ b/client/blocks/location-search/docs/example.jsx @@ -52,9 +52,6 @@ class LocationSearchExample extends Component { } } -const ConnectedLocationSearchExample = connect( - null, - { createNotice } -)( LocationSearchExample ); +const ConnectedLocationSearchExample = connect( null, { createNotice } )( LocationSearchExample ); ConnectedLocationSearchExample.displayName = 'LocationSearch'; export default ConnectedLocationSearchExample; diff --git a/client/blocks/login/two-factor-authentication/security-key-form.jsx b/client/blocks/login/two-factor-authentication/security-key-form.jsx index e55075c5c1cbf..8824a8c56ffd3 100644 --- a/client/blocks/login/two-factor-authentication/security-key-form.jsx +++ b/client/blocks/login/two-factor-authentication/security-key-form.jsx @@ -91,11 +91,8 @@ class SecurityKeyForm extends Component { } } -export default connect( - null, - { - formUpdate, - loginUserWithSecurityKey, - recordTracksEvent, - } -)( localize( SecurityKeyForm ) ); +export default connect( null, { + formUpdate, + loginUserWithSecurityKey, + recordTracksEvent, +} )( localize( SecurityKeyForm ) ); diff --git a/client/blocks/nps-survey/docs/example.jsx b/client/blocks/nps-survey/docs/example.jsx index ffb801e65e198..5d57244495e12 100644 --- a/client/blocks/nps-survey/docs/example.jsx +++ b/client/blocks/nps-survey/docs/example.jsx @@ -123,10 +123,7 @@ const mapDispatchToProp = { successNotice, }; -const ConnectedNpsSurveyExample = connect( - mapStateToProps, - mapDispatchToProp -)( NpsSurveyExample ); +const ConnectedNpsSurveyExample = connect( mapStateToProps, mapDispatchToProp )( NpsSurveyExample ); ConnectedNpsSurveyExample.displayName = 'NpsSurvey'; diff --git a/client/blocks/nps-survey/index.jsx b/client/blocks/nps-survey/index.jsx index 6daf36e80b182..48cc271a21d36 100644 --- a/client/blocks/nps-survey/index.jsx +++ b/client/blocks/nps-survey/index.jsx @@ -329,13 +329,10 @@ const mapStateToProps = state => { }; }; -export default connect( - mapStateToProps, - { - submitNpsSurvey, - submitNpsSurveyWithNoScore, - sendNpsSurveyFeedback, - successNotice, - recordTracksEvent, - } -)( localize( NpsSurvey ) ); +export default connect( mapStateToProps, { + submitNpsSurvey, + submitNpsSurveyWithNoScore, + sendNpsSurveyFeedback, + successNotice, + recordTracksEvent, +} )( localize( NpsSurvey ) ); diff --git a/client/blocks/privacy-policy-banner/index.jsx b/client/blocks/privacy-policy-banner/index.jsx index 50eddf1a710e0..ae607a371a885 100644 --- a/client/blocks/privacy-policy-banner/index.jsx +++ b/client/blocks/privacy-policy-banner/index.jsx @@ -183,10 +183,7 @@ const mapDispatchToProps = { }; export default compose( - connect( - mapStateToProps, - mapDispatchToProps - ), + connect( mapStateToProps, mapDispatchToProps ), withLocalizedMoment, localize )( PrivacyPolicyBanner ); diff --git a/client/blocks/product-selector/docs/example.jsx b/client/blocks/product-selector/docs/example.jsx index 4d68c709b40e7..81bd46691f02d 100644 --- a/client/blocks/product-selector/docs/example.jsx +++ b/client/blocks/product-selector/docs/example.jsx @@ -15,7 +15,7 @@ const products = [ title: 'Jetpack Backup', description: ( - Always-on backups ensure you never lose your site. Choose from real-time or daily backups.{' '} + Always-on backups ensure you never lose your site. Choose from real-time or daily backups.{ ' ' } Which one do I need? diff --git a/client/blocks/product-selector/index.jsx b/client/blocks/product-selector/index.jsx index a640e3a8e99de..2d4c3f077aa19 100644 --- a/client/blocks/product-selector/index.jsx +++ b/client/blocks/product-selector/index.jsx @@ -511,8 +511,4 @@ const connectComponent = connect( } ); -export default compose( - connectComponent, - localize, - withLocalizedMoment -)( ProductSelector ); +export default compose( connectComponent, localize, withLocalizedMoment )( ProductSelector ); diff --git a/client/blocks/reader-export-button/index.jsx b/client/blocks/reader-export-button/index.jsx index be308633a031f..04b7d50ac3768 100644 --- a/client/blocks/reader-export-button/index.jsx +++ b/client/blocks/reader-export-button/index.jsx @@ -69,7 +69,4 @@ class ReaderExportButton extends React.Component { } } -export default connect( - null, - { errorNotice } -)( localize( ReaderExportButton ) ); +export default connect( null, { errorNotice } )( localize( ReaderExportButton ) ); diff --git a/client/blocks/reader-feed-header/index.jsx b/client/blocks/reader-feed-header/index.jsx index 10311bce2bc32..f5991fce1de8a 100644 --- a/client/blocks/reader-feed-header/index.jsx +++ b/client/blocks/reader-feed-header/index.jsx @@ -70,7 +70,7 @@ class FeedHeader extends Component {
{ followerCount && ( - {' '} + { ' ' } { translate( '%s follower', '%s followers', { count: followerCount, args: [ this.props.numberFormat( followerCount ) ], diff --git a/client/blocks/reader-import-button/index.jsx b/client/blocks/reader-import-button/index.jsx index ae655620ce998..61a39be162640 100644 --- a/client/blocks/reader-import-button/index.jsx +++ b/client/blocks/reader-import-button/index.jsx @@ -110,7 +110,4 @@ class ReaderImportButton extends React.Component { } } -export default connect( - null, - { successNotice, errorNotice } -)( localize( ReaderImportButton ) ); +export default connect( null, { successNotice, errorNotice } )( localize( ReaderImportButton ) ); diff --git a/client/blocks/reader-list-item/index.jsx b/client/blocks/reader-list-item/index.jsx index 434a9c8b798e1..366633791e230 100644 --- a/client/blocks/reader-list-item/index.jsx +++ b/client/blocks/reader-list-item/index.jsx @@ -165,7 +165,4 @@ function ReaderListItem( { ); } -export default compose( - localize, - withLocalizedMoment -)( ReaderListItem ); +export default compose( localize, withLocalizedMoment )( ReaderListItem ); diff --git a/client/blocks/reader-post-card/blocked.jsx b/client/blocks/reader-post-card/blocked.jsx index 2bb022f49293e..e8cc5f76b369f 100644 --- a/client/blocks/reader-post-card/blocked.jsx +++ b/client/blocks/reader-post-card/blocked.jsx @@ -49,11 +49,8 @@ class PostBlocked extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - bumpStat, - unblockSite, - } -)( localize( PostBlocked ) ); +export default connect( null, { + recordGoogleEvent, + bumpStat, + unblockSite, +} )( localize( PostBlocked ) ); diff --git a/client/blocks/reader-post-options-menu/blog-sticker-menu-item.jsx b/client/blocks/reader-post-options-menu/blog-sticker-menu-item.jsx index 38e33df62109f..4f6725147dff5 100644 --- a/client/blocks/reader-post-options-menu/blog-sticker-menu-item.jsx +++ b/client/blocks/reader-post-options-menu/blog-sticker-menu-item.jsx @@ -44,7 +44,6 @@ class ReaderPostOptionsMenuBlogStickerMenuItem extends React.Component { } } -export default connect( - null, - { addBlogSticker, removeBlogSticker } -)( ReaderPostOptionsMenuBlogStickerMenuItem ); +export default connect( null, { addBlogSticker, removeBlogSticker } )( + ReaderPostOptionsMenuBlogStickerMenuItem +); diff --git a/client/blocks/reader-recommended-sites/index.jsx b/client/blocks/reader-recommended-sites/index.jsx index 0c80c7630500d..59c89935a0b96 100644 --- a/client/blocks/reader-recommended-sites/index.jsx +++ b/client/blocks/reader-recommended-sites/index.jsx @@ -98,7 +98,4 @@ export class RecommendedSites extends React.PureComponent { } } -export default connect( - null, - { dismissSite } -)( localize( RecommendedSites ) ); +export default connect( null, { dismissSite } )( localize( RecommendedSites ) ); diff --git a/client/blocks/reader-site-notification-settings/index.jsx b/client/blocks/reader-site-notification-settings/index.jsx index ef525aecfb156..6af9651f83010 100644 --- a/client/blocks/reader-site-notification-settings/index.jsx +++ b/client/blocks/reader-site-notification-settings/index.jsx @@ -249,16 +249,13 @@ const mapStateToProps = ( state, ownProps ) => { }; }; -export default connect( - mapStateToProps, - { - subscribeToNewPostEmail, - unsubscribeToNewPostEmail, - updateNewPostEmailSubscription, - subscribeToNewCommentEmail, - unsubscribeToNewCommentEmail, - subscribeToNewPostNotifications, - unsubscribeToNewPostNotifications, - recordTracksEvent, - } -)( localize( ReaderSiteNotificationSettings ) ); +export default connect( mapStateToProps, { + subscribeToNewPostEmail, + unsubscribeToNewPostEmail, + updateNewPostEmailSubscription, + subscribeToNewCommentEmail, + unsubscribeToNewCommentEmail, + subscribeToNewPostNotifications, + unsubscribeToNewPostNotifications, + recordTracksEvent, +} )( localize( ReaderSiteNotificationSettings ) ); diff --git a/client/blocks/reader-subscription-list-item/index.jsx b/client/blocks/reader-subscription-list-item/index.jsx index c013849115cc9..24c36aa279b7c 100644 --- a/client/blocks/reader-subscription-list-item/index.jsx +++ b/client/blocks/reader-subscription-list-item/index.jsx @@ -168,7 +168,4 @@ function ReaderSubscriptionListItem( { ); } -export default compose( - localize, - withLocalizedMoment -)( ReaderSubscriptionListItem ); +export default compose( localize, withLocalizedMoment )( ReaderSubscriptionListItem ); diff --git a/client/blocks/sharing-preview-pane/docs/example.jsx b/client/blocks/sharing-preview-pane/docs/example.jsx index d4bfce867e40a..f61e58532ecbb 100644 --- a/client/blocks/sharing-preview-pane/docs/example.jsx +++ b/client/blocks/sharing-preview-pane/docs/example.jsx @@ -24,7 +24,7 @@ const SharingPreviewPaneExample = ( { postId, site, siteId } ) => (
{ site && (

- Site:{' '} + Site:{ ' ' } { site.name } ({ siteId }) diff --git a/client/blocks/signup-form/passwordless.jsx b/client/blocks/signup-form/passwordless.jsx index c60eef03cb35f..778cc7ad0fd98 100644 --- a/client/blocks/signup-form/passwordless.jsx +++ b/client/blocks/signup-form/passwordless.jsx @@ -259,11 +259,8 @@ class PasswordlessSignupForm extends Component { ); } } -export default connect( - null, - { - recordTracksEvent, - saveSignupStep, - submitCreateAccountStep: submitSignupStep, - } -)( localize( PasswordlessSignupForm ) ); +export default connect( null, { + recordTracksEvent, + saveSignupStep, + submitCreateAccountStep: submitSignupStep, +} )( localize( PasswordlessSignupForm ) ); diff --git a/client/blocks/site-address-changer/index.jsx b/client/blocks/site-address-changer/index.jsx index 166862fff97a9..c39ae61567a3f 100644 --- a/client/blocks/site-address-changer/index.jsx +++ b/client/blocks/site-address-changer/index.jsx @@ -337,7 +337,7 @@ export class SiteAddressChanger extends Component { { args: { currentDomainName }, } - ) }{' '} + ) }{ ' ' } { translate( 'Before you confirm the change, please read this important information.' diff --git a/client/blocks/site-preview/index.jsx b/client/blocks/site-preview/index.jsx index 0cd32c5da9d0b..239fd2accfa4b 100644 --- a/client/blocks/site-preview/index.jsx +++ b/client/blocks/site-preview/index.jsx @@ -109,7 +109,4 @@ function mapStateToProps( state ) { }; } -export default connect( - mapStateToProps, - { closePreview } -)( SitePreview ); +export default connect( mapStateToProps, { closePreview } )( SitePreview ); diff --git a/client/blocks/site/index.jsx b/client/blocks/site/index.jsx index 3355cb9fb1bba..32af1f775b8cc 100644 --- a/client/blocks/site/index.jsx +++ b/client/blocks/site/index.jsx @@ -187,10 +187,7 @@ function mapStateToProps( state, ownProps ) { }; } -export default connect( - mapStateToProps, - { - recordGoogleEvent, - recordTracksEvent, - } -)( localize( Site ) ); +export default connect( mapStateToProps, { + recordGoogleEvent, + recordTracksEvent, +} )( localize( Site ) ); diff --git a/client/blocks/support-article-dialog/docs/example.jsx b/client/blocks/support-article-dialog/docs/example.jsx index 2ebd26d6dff0d..f52805fae48d9 100644 --- a/client/blocks/support-article-dialog/docs/example.jsx +++ b/client/blocks/support-article-dialog/docs/example.jsx @@ -29,12 +29,9 @@ class SupportArticleDialogExample extends Component { } } -const ConnectedExample = connect( - null, - { - openSupportArticleDialog, - } -)( SupportArticleDialogExample ); +const ConnectedExample = connect( null, { + openSupportArticleDialog, +} )( SupportArticleDialogExample ); ConnectedExample.displayName = 'SupportArticleDialog'; diff --git a/client/blocks/term-tree-selector/terms.jsx b/client/blocks/term-tree-selector/terms.jsx index a72454e7cc70f..f28b11846391b 100644 --- a/client/blocks/term-tree-selector/terms.jsx +++ b/client/blocks/term-tree-selector/terms.jsx @@ -192,13 +192,13 @@ class TermTreeSelectorList extends Component { hasNoSearchResults = () => { return ( ! this.props.loading && - ( this.props.terms && ! this.props.terms.length ) && + this.props.terms && ! this.props.terms.length && !! this.state.searchTerm.length ); }; hasNoTerms = () => { - return ! this.props.loading && ( this.props.terms && ! this.props.terms.length ); + return ! this.props.loading && this.props.terms && ! this.props.terms.length; }; getItem = index => { diff --git a/client/blocks/upgrade-nudge-expanded/index.jsx b/client/blocks/upgrade-nudge-expanded/index.jsx index 261b586139bba..6e55073a5aaec 100644 --- a/client/blocks/upgrade-nudge-expanded/index.jsx +++ b/client/blocks/upgrade-nudge-expanded/index.jsx @@ -162,7 +162,4 @@ const mapStateToProps = ( state, { plan = PLAN_PERSONAL } ) => ( { const mapDispatchToProps = dispatch => bindActionCreators( { recordTracksEvent }, dispatch ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( UpgradeNudgeExpanded ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( UpgradeNudgeExpanded ) ); diff --git a/client/blocks/upgrade-nudge/index.jsx b/client/blocks/upgrade-nudge/index.jsx index bb0eeebe6609d..dde09675bf3ed 100644 --- a/client/blocks/upgrade-nudge/index.jsx +++ b/client/blocks/upgrade-nudge/index.jsx @@ -96,11 +96,11 @@ export class UpgradeNudge extends React.Component { const shouldNotDisplay = isVip || ! canManageSite || - ( ! site || typeof site !== 'object' || typeof site.jetpack !== 'boolean' ) || + ! site || typeof site !== 'object' || typeof site.jetpack !== 'boolean' || ( feature && planHasFeature ) || ( ! feature && ! isFreePlan( site.plan ) ) || ( feature === FEATURE_NO_ADS && site.options.wordads ) || - ( ( ! jetpack && site.jetpack ) || ( jetpack && ! site.jetpack ) ); + ( ! jetpack && site.jetpack ) || ( jetpack && ! site.jetpack ); if ( shouldNotDisplay && ! forceDisplay ) { return null; diff --git a/client/blocks/upwork-banner/index.jsx b/client/blocks/upwork-banner/index.jsx index 6b9c5f307212d..0b90c6b9194aa 100644 --- a/client/blocks/upwork-banner/index.jsx +++ b/client/blocks/upwork-banner/index.jsx @@ -123,10 +123,7 @@ const mapStateToProps = ( state, ownProps ) => { }; }; -export default connect( - mapStateToProps, - { - dismissBanner, - recordTracksEvent, - } -)( localize( UpworkBanner ) ); +export default connect( mapStateToProps, { + dismissBanner, + recordTracksEvent, +} )( localize( UpworkBanner ) ); diff --git a/client/components/async-loader/index.jsx b/client/components/async-loader/index.jsx index 0812b76f36d63..3fc7b43ce03a2 100644 --- a/client/components/async-loader/index.jsx +++ b/client/components/async-loader/index.jsx @@ -29,7 +29,10 @@ export const asyncLoader = ( { promises, loading, success, failure } ) => return a; } ) - .then( a => [ true, a, key ], a => [ false, a, key ] ) + .then( + a => [ true, a, key ], + a => [ false, a, key ] + ) ); Promise.all( runners ).then( resolutions => { diff --git a/client/components/banner/index.jsx b/client/components/banner/index.jsx index 2da1da7088fb2..1058249662254 100644 --- a/client/components/banner/index.jsx +++ b/client/components/banner/index.jsx @@ -270,7 +270,4 @@ const mapStateToProps = ( state, ownProps ) => ( { canUserUpgrade: canCurrentUser( state, getSelectedSiteId( state ), 'manage_options' ), } ); -export default connect( - mapStateToProps, - { recordTracksEvent } -)( Banner ); +export default connect( mapStateToProps, { recordTracksEvent } )( Banner ); diff --git a/client/components/bulk-select/docs/example.jsx b/client/components/bulk-select/docs/example.jsx index f0d004b17e4a7..b90cbf70be172 100644 --- a/client/components/bulk-select/docs/example.jsx +++ b/client/components/bulk-select/docs/example.jsx @@ -16,7 +16,10 @@ export default class extends React.Component { static displayName = 'BulkSelects'; state = { - elements: [ { title: 'Apples', selected: true }, { title: 'Oranges', selected: false } ], + elements: [ + { title: 'Apples', selected: true }, + { title: 'Oranges', selected: false }, + ], }; handleToggleAll = checkedState => { diff --git a/client/components/data/moderate-comment/index.jsx b/client/components/data/moderate-comment/index.jsx index bcea9c91cf4b0..ac094d096b3ca 100644 --- a/client/components/data/moderate-comment/index.jsx +++ b/client/components/data/moderate-comment/index.jsx @@ -119,7 +119,4 @@ const mapDispatchToProps = ( dispatch, { siteId, postId, commentId, newStatus } ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ModerateComment ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ModerateComment ) ); diff --git a/client/components/data/query-application-passwords/index.jsx b/client/components/data/query-application-passwords/index.jsx index d465945013282..8a16adaa5d7be 100644 --- a/client/components/data/query-application-passwords/index.jsx +++ b/client/components/data/query-application-passwords/index.jsx @@ -26,7 +26,4 @@ class QueryApplicationPasswords extends Component { } } -export default connect( - null, - { requestApplicationPasswords } -)( QueryApplicationPasswords ); +export default connect( null, { requestApplicationPasswords } )( QueryApplicationPasswords ); diff --git a/client/components/data/query-atat-eligibility/index.jsx b/client/components/data/query-atat-eligibility/index.jsx index 96e4fba21d38c..2c888e432bcad 100644 --- a/client/components/data/query-atat-eligibility/index.jsx +++ b/client/components/data/query-atat-eligibility/index.jsx @@ -42,7 +42,4 @@ export const mapDispatchToProps = { requestEligibility, }; -export default connect( - null, - mapDispatchToProps -)( QueryAutomatedTransferEligibility ); +export default connect( null, mapDispatchToProps )( QueryAutomatedTransferEligibility ); diff --git a/client/components/data/query-comment/index.jsx b/client/components/data/query-comment/index.jsx index 36b25cf5252eb..5e7efc7cabb05 100644 --- a/client/components/data/query-comment/index.jsx +++ b/client/components/data/query-comment/index.jsx @@ -48,7 +48,4 @@ export class QueryComment extends Component { } } -export default connect( - null, - { requestComment } -)( QueryComment ); +export default connect( null, { requestComment } )( QueryComment ); diff --git a/client/components/data/query-concierge-appointment-details/index.js b/client/components/data/query-concierge-appointment-details/index.js index e5f090c48c752..4886d1c0812de 100644 --- a/client/components/data/query-concierge-appointment-details/index.js +++ b/client/components/data/query-concierge-appointment-details/index.js @@ -22,7 +22,6 @@ class QueryConciergeAppointmentDetails extends Component { } } -export default connect( - state => state, - { requestConciergeAppointmentDetails } -)( QueryConciergeAppointmentDetails ); +export default connect( state => state, { requestConciergeAppointmentDetails } )( + QueryConciergeAppointmentDetails +); diff --git a/client/components/data/query-concierge-initial/index.js b/client/components/data/query-concierge-initial/index.js index 360e4ff77c2f3..22d47362c6535 100644 --- a/client/components/data/query-concierge-initial/index.js +++ b/client/components/data/query-concierge-initial/index.js @@ -23,7 +23,4 @@ class QueryConciergeInitial extends Component { } } -export default connect( - state => state, - { requestConciergeInitial } -)( QueryConciergeInitial ); +export default connect( state => state, { requestConciergeInitial } )( QueryConciergeInitial ); diff --git a/client/components/data/query-connected-applications/index.jsx b/client/components/data/query-connected-applications/index.jsx index d689c897fea75..95c233597b0f8 100644 --- a/client/components/data/query-connected-applications/index.jsx +++ b/client/components/data/query-connected-applications/index.jsx @@ -26,7 +26,4 @@ class QueryConnectedApplications extends Component { } } -export default connect( - null, - { requestConnectedApplications } -)( QueryConnectedApplications ); +export default connect( null, { requestConnectedApplications } )( QueryConnectedApplications ); diff --git a/client/components/data/query-countries/domains.jsx b/client/components/data/query-countries/domains.jsx index b3fb928347f72..1cfa495ca6bec 100644 --- a/client/components/data/query-countries/domains.jsx +++ b/client/components/data/query-countries/domains.jsx @@ -11,7 +11,4 @@ import { connect } from 'react-redux'; import QueryCountries from 'components/data/query-countries'; import { fetchDomainCountries } from 'state/countries/actions'; -export default connect( - null, - { requestCountries: fetchDomainCountries } -)( QueryCountries ); +export default connect( null, { requestCountries: fetchDomainCountries } )( QueryCountries ); diff --git a/client/components/data/query-countries/payments.jsx b/client/components/data/query-countries/payments.jsx index 52a931d69b0cd..6b841942cc6a1 100644 --- a/client/components/data/query-countries/payments.jsx +++ b/client/components/data/query-countries/payments.jsx @@ -11,7 +11,4 @@ import { connect } from 'react-redux'; import QueryCountries from 'components/data/query-countries'; import { fetchPaymentCountries } from 'state/countries/actions'; -export default connect( - null, - { requestCountries: fetchPaymentCountries } -)( QueryCountries ); +export default connect( null, { requestCountries: fetchPaymentCountries } )( QueryCountries ); diff --git a/client/components/data/query-countries/sms.jsx b/client/components/data/query-countries/sms.jsx index 927d403a9eccf..5b2ceade088d5 100644 --- a/client/components/data/query-countries/sms.jsx +++ b/client/components/data/query-countries/sms.jsx @@ -11,7 +11,4 @@ import { connect } from 'react-redux'; import QueryCountries from 'components/data/query-countries'; import { fetchSmsCountries } from 'state/countries/actions'; -export default connect( - null, - { requestCountries: fetchSmsCountries } -)( QueryCountries ); +export default connect( null, { requestCountries: fetchSmsCountries } )( QueryCountries ); diff --git a/client/components/data/query-help-links/index.jsx b/client/components/data/query-help-links/index.jsx index 8c1564aa0a6b4..faedc58c331c8 100644 --- a/client/components/data/query-help-links/index.jsx +++ b/client/components/data/query-help-links/index.jsx @@ -41,7 +41,4 @@ QueryHelpLinks.propTypes = { requestHelpLinks: PropTypes.func, }; -export default connect( - null, - { requestHelpLinks } -)( QueryHelpLinks ); +export default connect( null, { requestHelpLinks } )( QueryHelpLinks ); diff --git a/client/components/data/query-jetpack-product-install-status/index.js b/client/components/data/query-jetpack-product-install-status/index.js index 2f6e5ef013fe1..23bc81d591d4c 100644 --- a/client/components/data/query-jetpack-product-install-status/index.js +++ b/client/components/data/query-jetpack-product-install-status/index.js @@ -30,9 +30,6 @@ class QueryJetpackProductInstallStatus extends Component { } } -export default connect( - null, - { - requestJetpackProductInstallStatus, - } -)( QueryJetpackProductInstallStatus ); +export default connect( null, { + requestJetpackProductInstallStatus, +} )( QueryJetpackProductInstallStatus ); diff --git a/client/components/data/query-mailchimp-lists/index.js b/client/components/data/query-mailchimp-lists/index.js index f1e959f415113..231e3d2d0ec52 100644 --- a/client/components/data/query-mailchimp-lists/index.js +++ b/client/components/data/query-mailchimp-lists/index.js @@ -30,7 +30,4 @@ class QueryMailchimpLists extends Component { } } -export default connect( - null, - { requestList } -)( QueryMailchimpLists ); +export default connect( null, { requestList } )( QueryMailchimpLists ); diff --git a/client/components/data/query-mailchimp-settings/index.js b/client/components/data/query-mailchimp-settings/index.js index 592f7609d2176..9e6ea5c2a1db8 100644 --- a/client/components/data/query-mailchimp-settings/index.js +++ b/client/components/data/query-mailchimp-settings/index.js @@ -30,7 +30,4 @@ class QueryMailchimpSettings extends Component { } } -export default connect( - null, - { requestSettings } -)( QueryMailchimpSettings ); +export default connect( null, { requestSettings } )( QueryMailchimpSettings ); diff --git a/client/components/data/query-media/index.jsx b/client/components/data/query-media/index.jsx index 3a3caebb6f9ed..c817502943667 100644 --- a/client/components/data/query-media/index.jsx +++ b/client/components/data/query-media/index.jsx @@ -65,7 +65,4 @@ class QueryMedia extends Component { } } -export default connect( - null, - mapDispatchToProps -)( QueryMedia ); +export default connect( null, mapDispatchToProps )( QueryMedia ); diff --git a/client/components/data/query-memberships-earnings/index.js b/client/components/data/query-memberships-earnings/index.js index 3a432d7e92fa4..26ed70612b7c4 100644 --- a/client/components/data/query-memberships-earnings/index.js +++ b/client/components/data/query-memberships-earnings/index.js @@ -46,7 +46,4 @@ class QueryMembershipsEarnings extends Component { } } -export default connect( - null, - { requestEarnings } -)( QueryMembershipsEarnings ); +export default connect( null, { requestEarnings } )( QueryMembershipsEarnings ); diff --git a/client/components/data/query-memberships-settings/index.js b/client/components/data/query-memberships-settings/index.js index c23d182412f47..22136a1be6ddc 100644 --- a/client/components/data/query-memberships-settings/index.js +++ b/client/components/data/query-memberships-settings/index.js @@ -46,7 +46,4 @@ class QueryMembershipsSettings extends Component { } } -export default connect( - null, - { requestSettings } -)( QueryMembershipsSettings ); +export default connect( null, { requestSettings } )( QueryMembershipsSettings ); diff --git a/client/components/data/query-memberships-subscriptions/index.js b/client/components/data/query-memberships-subscriptions/index.js index 321122aa1ebd1..82a5a24ba431f 100644 --- a/client/components/data/query-memberships-subscriptions/index.js +++ b/client/components/data/query-memberships-subscriptions/index.js @@ -22,7 +22,4 @@ class QueryMembershipsSubscriptions extends Component { } } -export default connect( - null, - { requestSubscriptionsList } -)( QueryMembershipsSubscriptions ); +export default connect( null, { requestSubscriptionsList } )( QueryMembershipsSubscriptions ); diff --git a/client/components/data/query-memberships/index.js b/client/components/data/query-memberships/index.js index e13dc6d867fec..f6600f71c4388 100644 --- a/client/components/data/query-memberships/index.js +++ b/client/components/data/query-memberships/index.js @@ -46,7 +46,4 @@ class QueryMemberships extends Component { } } -export default connect( - null, - { requestProducts } -)( QueryMemberships ); +export default connect( null, { requestProducts } )( QueryMemberships ); diff --git a/client/components/data/query-post-revision-authors/index.jsx b/client/components/data/query-post-revision-authors/index.jsx index c8953d2a6ae45..8111101bf0795 100644 --- a/client/components/data/query-post-revision-authors/index.jsx +++ b/client/components/data/query-post-revision-authors/index.jsx @@ -49,9 +49,6 @@ class QueryPostRevisionAuthors extends Component { } } -export default connect( - null, - { - requestPostRevisionAuthors, - } -)( QueryPostRevisionAuthors ); +export default connect( null, { + requestPostRevisionAuthors, +} )( QueryPostRevisionAuthors ); diff --git a/client/components/data/query-preferences/index.jsx b/client/components/data/query-preferences/index.jsx index 7821c98ada5be..47563b8be7e11 100644 --- a/client/components/data/query-preferences/index.jsx +++ b/client/components/data/query-preferences/index.jsx @@ -36,9 +36,6 @@ QueryPreferences.defaultProps = { fetchingPreferences: false, }; -export default connect( - state => ( { fetchingPreferences: isFetchingPreferences( state ) } ), - { - fetchPreferences, - } -)( QueryPreferences ); +export default connect( state => ( { fetchingPreferences: isFetchingPreferences( state ) } ), { + fetchPreferences, +} )( QueryPreferences ); diff --git a/client/components/data/query-privacy-policy/index.jsx b/client/components/data/query-privacy-policy/index.jsx index 7231a3b014774..cda8ce33a1257 100644 --- a/client/components/data/query-privacy-policy/index.jsx +++ b/client/components/data/query-privacy-policy/index.jsx @@ -27,7 +27,4 @@ export class QueryPrivacyPolicy extends Component { } } -export default connect( - null, - { requestPrivacyPolicy } -)( QueryPrivacyPolicy ); +export default connect( null, { requestPrivacyPolicy } )( QueryPrivacyPolicy ); diff --git a/client/components/data/query-products-list/index.jsx b/client/components/data/query-products-list/index.jsx index ca36cfb848fd8..dca0398e8e35c 100644 --- a/client/components/data/query-products-list/index.jsx +++ b/client/components/data/query-products-list/index.jsx @@ -31,7 +31,6 @@ QueryProductsList.propTypes = { requestProductsList: PropTypes.func, }; -export default connect( - state => ( { isFetching: isFetching( state ) } ), - { requestProductsList } -)( QueryProductsList ); +export default connect( state => ( { isFetching: isFetching( state ) } ), { requestProductsList } )( + QueryProductsList +); diff --git a/client/components/data/query-profile-links/index.jsx b/client/components/data/query-profile-links/index.jsx index c3e01986274ef..a749c8c452598 100644 --- a/client/components/data/query-profile-links/index.jsx +++ b/client/components/data/query-profile-links/index.jsx @@ -26,7 +26,4 @@ class QueryProfileLinks extends Component { } } -export default connect( - null, - { requestUserProfileLinks } -)( QueryProfileLinks ); +export default connect( null, { requestUserProfileLinks } )( QueryProfileLinks ); diff --git a/client/components/data/query-reader-feeds-search/index.jsx b/client/components/data/query-reader-feeds-search/index.jsx index bf0ca0de851e7..51e2c3b15a759 100644 --- a/client/components/data/query-reader-feeds-search/index.jsx +++ b/client/components/data/query-reader-feeds-search/index.jsx @@ -45,7 +45,4 @@ class QueryFeedSearch extends Component { } } -export default connect( - null, - { requestFeedSearch } -)( QueryFeedSearch ); +export default connect( null, { requestFeedSearch } )( QueryFeedSearch ); diff --git a/client/components/data/query-reader-followed-tags/index.jsx b/client/components/data/query-reader-followed-tags/index.jsx index caa9f19b21488..d50e9b7d4f770 100644 --- a/client/components/data/query-reader-followed-tags/index.jsx +++ b/client/components/data/query-reader-followed-tags/index.jsx @@ -31,7 +31,4 @@ class QueryReaderFollowedTags extends Component { } } -export default connect( - null, - { requestFollowedTags: requestTags } -)( QueryReaderFollowedTags ); +export default connect( null, { requestFollowedTags: requestTags } )( QueryReaderFollowedTags ); diff --git a/client/components/data/query-reader-recommended-sites/index.jsx b/client/components/data/query-reader-recommended-sites/index.jsx index 60d84b153edc5..11f684d325404 100644 --- a/client/components/data/query-reader-recommended-sites/index.jsx +++ b/client/components/data/query-reader-recommended-sites/index.jsx @@ -37,7 +37,4 @@ class QueryReaderRecommendedSites extends Component { } } -export default connect( - null, - { requestRecommendedSites } -)( QueryReaderRecommendedSites ); +export default connect( null, { requestRecommendedSites } )( QueryReaderRecommendedSites ); diff --git a/client/components/data/query-reader-tag/index.jsx b/client/components/data/query-reader-tag/index.jsx index 4f1b903114f02..4fb95303e9c7e 100644 --- a/client/components/data/query-reader-tag/index.jsx +++ b/client/components/data/query-reader-tag/index.jsx @@ -24,7 +24,4 @@ QueryReaderTag.propTypes = { tag: PropTypes.string.isRequired, }; -export default connect( - null, - { requestTags } -)( QueryReaderTag ); +export default connect( null, { requestTags } )( QueryReaderTag ); diff --git a/client/components/data/query-reader-teams/index.jsx b/client/components/data/query-reader-teams/index.jsx index a1ee8d251bd38..6162a9ec5deff 100644 --- a/client/components/data/query-reader-teams/index.jsx +++ b/client/components/data/query-reader-teams/index.jsx @@ -27,7 +27,4 @@ QueryReaderTeams.propTypes = { request: PropTypes.func, }; -export default connect( - null, - { requestTeams } -)( QueryReaderTeams ); +export default connect( null, { requestTeams } )( QueryReaderTeams ); diff --git a/client/components/data/query-reader-thumbnails/index.jsx b/client/components/data/query-reader-thumbnails/index.jsx index 3bd0ee5d4ac5e..055ec55424747 100644 --- a/client/components/data/query-reader-thumbnails/index.jsx +++ b/client/components/data/query-reader-thumbnails/index.jsx @@ -49,7 +49,4 @@ const mapStateToProps = ( state, ownProps ) => ( { const mapDispatchToProps = dispatch => bindActionCreators( { requestThumbnail }, dispatch ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( QueryReaderThumbnails ); +export default connect( mapStateToProps, mapDispatchToProps )( QueryReaderThumbnails ); diff --git a/client/components/data/query-rewind-backup-status/index.js b/client/components/data/query-rewind-backup-status/index.js index 3d9516800da5d..24c436414d45c 100644 --- a/client/components/data/query-rewind-backup-status/index.js +++ b/client/components/data/query-rewind-backup-status/index.js @@ -43,7 +43,4 @@ class QueryRewindBackupStatus extends Component { } } -export default connect( - null, - { getRewindBackupProgress } -)( QueryRewindBackupStatus ); +export default connect( null, { getRewindBackupProgress } )( QueryRewindBackupStatus ); diff --git a/client/components/data/query-rewind-restore-status/index.js b/client/components/data/query-rewind-restore-status/index.js index 30e8145f0ac06..33a58bdaa6b54 100644 --- a/client/components/data/query-rewind-restore-status/index.js +++ b/client/components/data/query-rewind-restore-status/index.js @@ -29,7 +29,4 @@ class QueryRewindRestoreStatus extends Component { } } -export default connect( - null, - { getRewindRestoreProgress } -)( QueryRewindRestoreStatus ); +export default connect( null, { getRewindRestoreProgress } )( QueryRewindRestoreStatus ); diff --git a/client/components/data/query-rewind-state/index.jsx b/client/components/data/query-rewind-state/index.jsx index ac92fdc3c7bad..fa3ebe62f1ef3 100644 --- a/client/components/data/query-rewind-state/index.jsx +++ b/client/components/data/query-rewind-state/index.jsx @@ -40,7 +40,4 @@ const mapDispatchToProps = { requestState: requestRewindState, }; -export default connect( - null, - mapDispatchToProps -)( QueryRewindState ); +export default connect( null, mapDispatchToProps )( QueryRewindState ); diff --git a/client/components/data/query-simple-payments/index.js b/client/components/data/query-simple-payments/index.js index f774208c50267..f76d83d41a602 100644 --- a/client/components/data/query-simple-payments/index.js +++ b/client/components/data/query-simple-payments/index.js @@ -61,7 +61,4 @@ class QuerySimplePayments extends Component { } } -export default connect( - null, - { requestProduct, requestProducts } -)( QuerySimplePayments ); +export default connect( null, { requestProduct, requestProducts } )( QuerySimplePayments ); diff --git a/client/components/data/query-site-blocks/index.jsx b/client/components/data/query-site-blocks/index.jsx index 0ff3b96197225..31044239246f7 100644 --- a/client/components/data/query-site-blocks/index.jsx +++ b/client/components/data/query-site-blocks/index.jsx @@ -37,7 +37,4 @@ class QuerySiteBlocks extends Component { } } -export default connect( - null, - { requestSiteBlocks } -)( QuerySiteBlocks ); +export default connect( null, { requestSiteBlocks } )( QuerySiteBlocks ); diff --git a/client/components/data/query-site-checklist/index.js b/client/components/data/query-site-checklist/index.js index 837ac02ae3af2..c2274e804f251 100644 --- a/client/components/data/query-site-checklist/index.js +++ b/client/components/data/query-site-checklist/index.js @@ -42,7 +42,4 @@ class QuerySiteChecklist extends Component { } } -export default connect( - null, - { requestSiteChecklist } -)( QuerySiteChecklist ); +export default connect( null, { requestSiteChecklist } )( QuerySiteChecklist ); diff --git a/client/components/data/query-site-comment-counts/index.jsx b/client/components/data/query-site-comment-counts/index.jsx index d136be98d5bf9..096bb45d11dba 100644 --- a/client/components/data/query-site-comment-counts/index.jsx +++ b/client/components/data/query-site-comment-counts/index.jsx @@ -41,7 +41,4 @@ export class QuerySiteCommentCounts extends PureComponent { } } -export default connect( - null, - { requestCommentCounts } -)( QuerySiteCommentCounts ); +export default connect( null, { requestCommentCounts } )( QuerySiteCommentCounts ); diff --git a/client/components/data/query-site-comments-list/index.jsx b/client/components/data/query-site-comments-list/index.jsx index 7c9ba9a7ae71a..c73e7d4666295 100644 --- a/client/components/data/query-site-comments-list/index.jsx +++ b/client/components/data/query-site-comments-list/index.jsx @@ -47,7 +47,4 @@ export class QuerySiteCommentsList extends PureComponent { } } -export default connect( - null, - { requestCommentsList } -)( QuerySiteCommentsList ); +export default connect( null, { requestCommentsList } )( QuerySiteCommentsList ); diff --git a/client/components/data/query-site-comments-tree/index.jsx b/client/components/data/query-site-comments-tree/index.jsx index 71b70ad12c889..a8bd536457ec4 100644 --- a/client/components/data/query-site-comments-tree/index.jsx +++ b/client/components/data/query-site-comments-tree/index.jsx @@ -47,7 +47,4 @@ export class QuerySiteCommentsTree extends Component { } } -export default connect( - null, - { requestCommentsTreeForSite } -)( QuerySiteCommentsTree ); +export default connect( null, { requestCommentsTreeForSite } )( QuerySiteCommentsTree ); diff --git a/client/components/data/query-site-guided-transfer/index.jsx b/client/components/data/query-site-guided-transfer/index.jsx index 8d40f90583f28..a4120d3b89d65 100644 --- a/client/components/data/query-site-guided-transfer/index.jsx +++ b/client/components/data/query-site-guided-transfer/index.jsx @@ -58,7 +58,4 @@ const mapStateToProps = ( state, ownProps ) => ( { const mapDispatchToProps = dispatch => bindActionCreators( { requestGuidedTransferStatus }, dispatch ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( QuerySiteGuidedTransfer ); +export default connect( mapStateToProps, mapDispatchToProps )( QuerySiteGuidedTransfer ); diff --git a/client/components/data/query-site-recommended-plugins/index.jsx b/client/components/data/query-site-recommended-plugins/index.jsx index 67723c803b6fe..f4d3c6ba19cad 100644 --- a/client/components/data/query-site-recommended-plugins/index.jsx +++ b/client/components/data/query-site-recommended-plugins/index.jsx @@ -30,9 +30,6 @@ class QuerySiteRecommendedPlugins extends Component { } } -export default connect( - null, - { - fetchRecommendedPlugins, - } -)( QuerySiteRecommendedPlugins ); +export default connect( null, { + fetchRecommendedPlugins, +} )( QuerySiteRecommendedPlugins ); diff --git a/client/components/data/query-site-selected-editor/index.jsx b/client/components/data/query-site-selected-editor/index.jsx index 521e558e1c0d2..12939d5ede079 100644 --- a/client/components/data/query-site-selected-editor/index.jsx +++ b/client/components/data/query-site-selected-editor/index.jsx @@ -38,7 +38,4 @@ export class QuerySiteSelectedEditor extends Component { } } -export default connect( - null, - { requestSelectedEditor } -)( QuerySiteSelectedEditor ); +export default connect( null, { requestSelectedEditor } )( QuerySiteSelectedEditor ); diff --git a/client/components/data/query-stats-recent-post-views/index.jsx b/client/components/data/query-stats-recent-post-views/index.jsx index f2f13ebadbc85..251be105550e1 100644 --- a/client/components/data/query-stats-recent-post-views/index.jsx +++ b/client/components/data/query-stats-recent-post-views/index.jsx @@ -55,7 +55,4 @@ class QueryRecentPostViews extends Component { } } -export default connect( - null, - { requestRecentPostViews } -)( QueryRecentPostViews ); +export default connect( null, { requestRecentPostViews } )( QueryRecentPostViews ); diff --git a/client/components/data/query-theme-filters/index.jsx b/client/components/data/query-theme-filters/index.jsx index 9fae44ba147e6..610a865d55b79 100644 --- a/client/components/data/query-theme-filters/index.jsx +++ b/client/components/data/query-theme-filters/index.jsx @@ -27,7 +27,4 @@ export class QueryThemeFilters extends Component { } } -export default connect( - null, - { requestThemeFilters } -)( QueryThemeFilters ); +export default connect( null, { requestThemeFilters } )( QueryThemeFilters ); diff --git a/client/components/data/query-timezones/index.jsx b/client/components/data/query-timezones/index.jsx index 3a55d4c635f33..b3cf286440644 100644 --- a/client/components/data/query-timezones/index.jsx +++ b/client/components/data/query-timezones/index.jsx @@ -27,7 +27,4 @@ export class QueryTimezones extends Component { } } -export default connect( - null, - { requestTimezones } -)( QueryTimezones ); +export default connect( null, { requestTimezones } )( QueryTimezones ); diff --git a/client/components/data/query-user-devices/index.jsx b/client/components/data/query-user-devices/index.jsx index 2b6183989b638..2496b6a72ced5 100644 --- a/client/components/data/query-user-devices/index.jsx +++ b/client/components/data/query-user-devices/index.jsx @@ -27,7 +27,4 @@ class QueryUserDevices extends Component { } } -export default connect( - null, - { requestUserDevices } -)( QueryUserDevices ); +export default connect( null, { requestUserDevices } )( QueryUserDevices ); diff --git a/client/components/data/query-user-settings/index.jsx b/client/components/data/query-user-settings/index.jsx index 4a924254e28b5..33c3b01d758b6 100644 --- a/client/components/data/query-user-settings/index.jsx +++ b/client/components/data/query-user-settings/index.jsx @@ -22,7 +22,4 @@ class QueryUserSettings extends Component { } } -export default connect( - null, - { fetchUserSettings } -)( QueryUserSettings ); +export default connect( null, { fetchUserSettings } )( QueryUserSettings ); diff --git a/client/components/data/query-wordads-earnings/index.jsx b/client/components/data/query-wordads-earnings/index.jsx index 41e485eccce2c..d50c5d79766a1 100644 --- a/client/components/data/query-wordads-earnings/index.jsx +++ b/client/components/data/query-wordads-earnings/index.jsx @@ -38,7 +38,4 @@ class QueryWordadsEarnings extends Component { } } -export default connect( - null, - { requestWordadsEarnings } -)( QueryWordadsEarnings ); +export default connect( null, { requestWordadsEarnings } )( QueryWordadsEarnings ); diff --git a/client/components/data/query-wordads-status/index.jsx b/client/components/data/query-wordads-status/index.jsx index fe9ee05bae59f..2b2c358ce71ce 100644 --- a/client/components/data/query-wordads-status/index.jsx +++ b/client/components/data/query-wordads-status/index.jsx @@ -38,7 +38,4 @@ class QueryWordadsStatus extends Component { } } -export default connect( - null, - { requestWordadsStatus } -)( QueryWordadsStatus ); +export default connect( null, { requestWordadsStatus } )( QueryWordadsStatus ); diff --git a/client/components/date-picker/index.jsx b/client/components/date-picker/index.jsx index b4e6ae0652b15..006edd10cd87f 100644 --- a/client/components/date-picker/index.jsx +++ b/client/components/date-picker/index.jsx @@ -229,8 +229,9 @@ class DatePicker extends PureComponent { } if ( this.props.events && this.props.events.length ) { - modifiers.events = map( filter( this.props.events, event => event.date ), event => - this.getDateInstance( event.date ) + modifiers.events = map( + filter( this.props.events, event => event.date ), + event => this.getDateInstance( event.date ) ); } diff --git a/client/components/domains/contact-details-form-fields/index.jsx b/client/components/domains/contact-details-form-fields/index.jsx index 1c18119bf79b0..2d4c7f5f51f51 100644 --- a/client/components/domains/contact-details-form-fields/index.jsx +++ b/client/components/domains/contact-details-form-fields/index.jsx @@ -141,9 +141,9 @@ export class ContactDetailsFormFields extends Component { ! isEqual( nextProps.labelTexts, this.props.labelTexts ) || ! isEqual( nextProps.countriesList, this.props.countriesList ) || ! isEqual( nextProps.hasCountryStates, this.props.hasCountryStates ) || - ( nextProps.needsFax !== this.props.needsFax || + nextProps.needsFax !== this.props.needsFax || nextProps.disableSubmitButton !== this.props.disableSubmitButton || - nextProps.needsOnlyGoogleAppsDetails !== this.props.needsOnlyGoogleAppsDetails ) + nextProps.needsOnlyGoogleAppsDetails !== this.props.needsOnlyGoogleAppsDetails ); } diff --git a/client/components/domains/domain-registration-suggestion/index.jsx b/client/components/domains/domain-registration-suggestion/index.jsx index e0bcc06b4ab5d..312ab52187821 100644 --- a/client/components/domains/domain-registration-suggestion/index.jsx +++ b/client/components/domains/domain-registration-suggestion/index.jsx @@ -335,7 +335,6 @@ const mapStateToProps = ( state, props ) => { }; }; -export default connect( - mapStateToProps, - { recordTracksEvent } -)( localize( DomainRegistrationSuggestion ) ); +export default connect( mapStateToProps, { recordTracksEvent } )( + localize( DomainRegistrationSuggestion ) +); diff --git a/client/components/domains/domain-search-results/index.jsx b/client/components/domains/domain-search-results/index.jsx index d25a020204d26..a0119efc6e750 100644 --- a/client/components/domains/domain-search-results/index.jsx +++ b/client/components/domains/domain-search-results/index.jsx @@ -329,7 +329,4 @@ const mapStateToProps = ( state, ownProps ) => { }; }; -export default connect( - mapStateToProps, - { hideSitePreview } -)( localize( DomainSearchResults ) ); +export default connect( mapStateToProps, { hideSitePreview } )( localize( DomainSearchResults ) ); diff --git a/client/components/domains/register-domain-step/analytics.js b/client/components/domains/register-domain-step/analytics.js index dd911c5bfbebd..84c5510f238fa 100644 --- a/client/components/domains/register-domain-step/analytics.js +++ b/client/components/domains/register-domain-step/analytics.js @@ -129,10 +129,7 @@ function processFiltersForAnalytics( filters ) { const convertArraysToCSV = input => mapValues( input, value => ( Array.isArray( value ) ? value.join( ',' ) : value ) ); const prepareKeys = input => mapKeys( input, ( value, key ) => `filters_${ snakeCase( key ) }` ); - const transformation = flow( - prepareKeys, - convertArraysToCSV - ); + const transformation = flow( prepareKeys, convertArraysToCSV ); return transformation( filters ); } diff --git a/client/components/domains/search-filters/tld-filter-bar.jsx b/client/components/domains/search-filters/tld-filter-bar.jsx index 5f7050e50cbcc..aab1d7a188a50 100644 --- a/client/components/domains/search-filters/tld-filter-bar.jsx +++ b/client/components/domains/search-filters/tld-filter-bar.jsx @@ -204,9 +204,6 @@ export class TldFilterBar extends Component { ); } } -export default connect( - null, - { - recordTldFilterSelected, - } -)( localize( TldFilterBar ) ); +export default connect( null, { + recordTldFilterSelected, +} )( localize( TldFilterBar ) ); diff --git a/client/components/domains/trademark-claims-notice/index.jsx b/client/components/domains/trademark-claims-notice/index.jsx index 875a797c89edf..ad6b519b9ead0 100644 --- a/client/components/domains/trademark-claims-notice/index.jsx +++ b/client/components/domains/trademark-claims-notice/index.jsx @@ -288,11 +288,8 @@ export const recordAcknowledgeTrademarkButtonClickInTrademarkNotice = domainName } ) ); -export default connect( - state => ( { selectedSite: getSelectedSite( state ) } ), - { - recordAcknowledgeTrademarkButtonClickInTrademarkNotice, - recordChooseAnotherDomainButtonClickInTrademarkNotice, - recordShowTrademarkNoticeButtonClickInTrademarkNotice, - } -)( localize( TrademarkClaimsNotice ) ); +export default connect( state => ( { selectedSite: getSelectedSite( state ) } ), { + recordAcknowledgeTrademarkButtonClickInTrademarkNotice, + recordChooseAnotherDomainButtonClickInTrademarkNotice, + recordShowTrademarkNoticeButtonClickInTrademarkNotice, +} )( localize( TrademarkClaimsNotice ) ); diff --git a/client/components/drop-zone/index.jsx b/client/components/drop-zone/index.jsx index 95d8dbb9fda0b..dd0b493768538 100644 --- a/client/components/drop-zone/index.jsx +++ b/client/components/drop-zone/index.jsx @@ -273,7 +273,4 @@ const mapDispatch = { hideDropZone, }; -export default connect( - null, - mapDispatch -)( localize( DropZone ) ); +export default connect( null, mapDispatch )( localize( DropZone ) ); diff --git a/client/components/external-link/with-tracking.jsx b/client/components/external-link/with-tracking.jsx index e3b9f8da07509..4a81dcc5c111f 100644 --- a/client/components/external-link/with-tracking.jsx +++ b/client/components/external-link/with-tracking.jsx @@ -53,7 +53,4 @@ ExternalLinkWithTracking.propTypes = { recordTracksEvent: PropTypes.func.isRequired, }; -export default connect( - null, - { recordTracksEvent } -)( ExternalLinkWithTracking ); +export default connect( null, { recordTracksEvent } )( ExternalLinkWithTracking ); diff --git a/client/components/focusable/docs/example.jsx b/client/components/focusable/docs/example.jsx index a114dd5c1b289..39623cda4176d 100644 --- a/client/components/focusable/docs/example.jsx +++ b/client/components/focusable/docs/example.jsx @@ -39,7 +39,7 @@ class FocusableExample extends React.PureComponent {

- This keyboard-accessible component can contain other elements as children, including{' '} + This keyboard-accessible component can contain other elements as children, including{ ' ' } p s, div s, or other components. diff --git a/client/components/forms/form-input-validation/index.jsx b/client/components/forms/form-input-validation/index.jsx index fbc77949f73f2..5edbcd9fdbf11 100644 --- a/client/components/forms/form-input-validation/index.jsx +++ b/client/components/forms/form-input-validation/index.jsx @@ -40,7 +40,7 @@ export default class extends React.Component { return (

diff --git a/client/components/forms/multi-checkbox/test/index.jsx b/client/components/forms/multi-checkbox/test/index.jsx index 1ea4ae84f7af7..6b85ce520aafc 100644 --- a/client/components/forms/multi-checkbox/test/index.jsx +++ b/client/components/forms/multi-checkbox/test/index.jsx @@ -17,7 +17,10 @@ import MultiCheckbox from '../'; let container; describe( 'index', () => { - const options = [ { value: 1, label: 'One' }, { value: 2, label: 'Two' } ]; + const options = [ + { value: 1, label: 'One' }, + { value: 2, label: 'Two' }, + ]; beforeEach( () => { container = document.createElement( 'div' ); diff --git a/client/components/global-notices/docs/example.jsx b/client/components/global-notices/docs/example.jsx index fc61b70ed298e..338db1d9f664b 100644 --- a/client/components/global-notices/docs/example.jsx +++ b/client/components/global-notices/docs/example.jsx @@ -66,9 +66,6 @@ GlobalNotices.propTypes = { createNotice: PropTypes.func, }; -const ConnectedGlobalNotices = connect( - null, - { createNotice } -)( GlobalNotices ); +const ConnectedGlobalNotices = connect( null, { createNotice } )( GlobalNotices ); ConnectedGlobalNotices.displayName = 'GlobalNotices'; export default ConnectedGlobalNotices; diff --git a/client/components/gsuite/docs/new-user-list.tsx b/client/components/gsuite/docs/new-user-list.tsx index b045b90a4b661..ff6763a9b8b10 100644 --- a/client/components/gsuite/docs/new-user-list.tsx +++ b/client/components/gsuite/docs/new-user-list.tsx @@ -64,28 +64,28 @@ const GSuiteNewUserListExample = () => { ✅ - {' '} + { ' ' } - All Users Ready ) : ( ❌ - {' '} + { ' ' } - Verification Errors ) }
- {' '} + { ' ' } { 'Use multiple domains' } setUseExtraValidation( ! useExtraValidation ) } - />{' '} + />{ ' ' } { "Use extra validation ( no a's in name )" } diff --git a/client/components/gsuite/gsuite-features/index.jsx b/client/components/gsuite/gsuite-features/index.jsx index 52e11fee09a82..2d0e1d5b2b780 100644 --- a/client/components/gsuite/gsuite-features/index.jsx +++ b/client/components/gsuite/gsuite-features/index.jsx @@ -79,9 +79,7 @@ const GSuiteFeatures = ( { compact, domainName, productSlug, type } ) => { compact={ compact } /> ( { } ); const mapDispatchToProps = { recordTracksEvent }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( DowngradeStep ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( DowngradeStep ) ); diff --git a/client/components/marketing-survey/cancel-purchase-form/step-components/upgrade-at-step.jsx b/client/components/marketing-survey/cancel-purchase-form/step-components/upgrade-at-step.jsx index 415e2e24a49a8..56c492883e56f 100644 --- a/client/components/marketing-survey/cancel-purchase-form/step-components/upgrade-at-step.jsx +++ b/client/components/marketing-survey/cancel-purchase-form/step-components/upgrade-at-step.jsx @@ -69,7 +69,4 @@ const mapStateToProps = state => ( { } ); const mapDispatchToProps = { recordTracksEvent }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( UpgradeATStep ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( UpgradeATStep ) ); diff --git a/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-features.jsx b/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-features.jsx index d869352af78e0..a66d7b9872e49 100644 --- a/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-features.jsx +++ b/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-features.jsx @@ -54,9 +54,6 @@ GSuiteCancellationFeatures.propTypes = { translate: PropTypes.func.isRequired, }; -export default connect( - null, - { - recordTracksEvent, - } -)( localize( GSuiteCancellationFeatures ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( GSuiteCancellationFeatures ) ); diff --git a/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-survey.jsx b/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-survey.jsx index 3c9e5696cd86a..7eed809bb9e6f 100644 --- a/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-survey.jsx +++ b/client/components/marketing-survey/gsuite-cancel-purchase-dialog/gsuite-cancellation-survey.jsx @@ -77,9 +77,6 @@ GSuiteCancellationSurvey.propTypes = { surveyAnswerText: PropTypes.string, }; -export default connect( - null, - { - recordTracksEvent, - } -)( localize( GSuiteCancellationSurvey ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( GSuiteCancellationSurvey ) ); diff --git a/client/components/mobile-back-to-sidebar/index.jsx b/client/components/mobile-back-to-sidebar/index.jsx index 4a041349cc773..e529bdf3855ed 100644 --- a/client/components/mobile-back-to-sidebar/index.jsx +++ b/client/components/mobile-back-to-sidebar/index.jsx @@ -25,7 +25,6 @@ function MobileBackToSidebar( { children, toggleSidebar } ) { ); } -export default connect( - null, - { toggleSidebar: () => setLayoutFocus( 'sidebar' ) } -)( MobileBackToSidebar ); +export default connect( null, { toggleSidebar: () => setLayoutFocus( 'sidebar' ) } )( + MobileBackToSidebar +); diff --git a/client/components/pie-chart/docs/example.js b/client/components/pie-chart/docs/example.js index a57d0f57e14e8..929ab62600e5a 100644 --- a/client/components/pie-chart/docs/example.js +++ b/client/components/pie-chart/docs/example.js @@ -109,7 +109,7 @@ class PieChartExample extends Component { value={ this.state[ seriesName ].value } onChange={ this.changeValue } /> - {' '} + { ' ' } ( { rewindState: getRewindState( state, siteId ), } ); -export default connect( - mapStateToProps, - { deleteCredentials, updateCredentials } -)( localize( RewindCredentialsForm ) ); +export default connect( mapStateToProps, { deleteCredentials, updateCredentials } )( + localize( RewindCredentialsForm ) +); diff --git a/client/components/select-dropdown/index.jsx b/client/components/select-dropdown/index.jsx index 54da865df6bcc..c1243fb1c8cf8 100644 --- a/client/components/select-dropdown/index.jsx +++ b/client/components/select-dropdown/index.jsx @@ -108,7 +108,10 @@ class SelectDropdown extends Component { } // Otherwise find the first option that is an item, i.e., not label or separator - return get( find( this.props.options, item => item && ! item.isLabel ), 'value' ); + return get( + find( this.props.options, item => item && ! item.isLabel ), + 'value' + ); } getSelectedText() { diff --git a/client/components/seo-preview-pane/index.jsx b/client/components/seo-preview-pane/index.jsx index d07951c4ca3df..c24942ba61d6a 100644 --- a/client/components/seo-preview-pane/index.jsx +++ b/client/components/seo-preview-pane/index.jsx @@ -279,7 +279,4 @@ const mapDispatchToProps = dispatch => ( { dispatch( recordTracksEvent( 'calypso_seo_tools_social_preview', { service } ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SeoPreviewPane ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SeoPreviewPane ) ); diff --git a/client/components/site-selector/add-site.jsx b/client/components/site-selector/add-site.jsx index da2bdf59faf6f..0218edf74ffe0 100644 --- a/client/components/site-selector/add-site.jsx +++ b/client/components/site-selector/add-site.jsx @@ -34,7 +34,4 @@ class SiteSelectorAddSite extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( SiteSelectorAddSite ) ); +export default connect( null, { recordTracksEvent } )( localize( SiteSelectorAddSite ) ); diff --git a/client/components/site-selector/index.jsx b/client/components/site-selector/index.jsx index cb6ecdd7ddd90..c6282690df2ee 100644 --- a/client/components/site-selector/index.jsx +++ b/client/components/site-selector/index.jsx @@ -536,8 +536,5 @@ const mapState = state => { export default flow( localize, searchSites, - connect( - mapState, - { navigateToSite } - ) + connect( mapState, { navigateToSite } ) )( SiteSelector ); diff --git a/client/components/site-verticals-suggestion-search/index.jsx b/client/components/site-verticals-suggestion-search/index.jsx index 913cac49415f6..dc25053e76863 100644 --- a/client/components/site-verticals-suggestion-search/index.jsx +++ b/client/components/site-verticals-suggestion-search/index.jsx @@ -234,18 +234,15 @@ function isRelatedVertical( vertical, normalizedInput ) { } export default localize( - connect( - ( state, ownProps ) => { - const siteType = getSiteType( state ); - const defaultVerticalSearchTerm = - getSiteTypePropertyValue( 'slug', siteType, 'defaultVertical' ) || ''; - return { - siteType, - defaultVerticalSearchTerm, - verticals: getVerticals( state, ownProps.searchValue, siteType ) || [], - defaultVertical: get( getVerticals( state, defaultVerticalSearchTerm, siteType ), '0', {} ), - }; - }, - null - )( SiteVerticalsSuggestionSearch ) + connect( ( state, ownProps ) => { + const siteType = getSiteType( state ); + const defaultVerticalSearchTerm = + getSiteTypePropertyValue( 'slug', siteType, 'defaultVertical' ) || ''; + return { + siteType, + defaultVerticalSearchTerm, + verticals: getVerticals( state, ownProps.searchValue, siteType ) || [], + defaultVertical: get( getVerticals( state, defaultVerticalSearchTerm, siteType ), '0', {} ), + }; + }, null )( SiteVerticalsSuggestionSearch ) ); diff --git a/client/components/spinner/docs/example.jsx b/client/components/spinner/docs/example.jsx index 968d1d856194b..6da0f57991dff 100644 --- a/client/components/spinner/docs/example.jsx +++ b/client/components/spinner/docs/example.jsx @@ -20,10 +20,10 @@ export default class extends React.PureComponent {

Please exercise caution in deciding to use a spinner in your component. A lone spinner is a poor user-experience and conveys little context to what the user should - expect from the page. Refer to{' '} + expect from the page. Refer to{ ' ' } the Reactivity and Loading States guide - {' '} + { ' ' } for more information on building fast interfaces and making the most of data already available to use.

diff --git a/client/components/theme/index.jsx b/client/components/theme/index.jsx index 09e8662f3db06..3b20567c291d8 100644 --- a/client/components/theme/index.jsx +++ b/client/components/theme/index.jsx @@ -260,7 +260,4 @@ export class Theme extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( Theme ) ); +export default connect( null, { recordTracksEvent } )( localize( Theme ) ); diff --git a/client/components/tinymce/plugins/contact-form/test/shortcode.js b/client/components/tinymce/plugins/contact-form/test/shortcode.js index 4d5e85eef9491..12afff9d4d8bf 100644 --- a/client/components/tinymce/plugins/contact-form/test/shortcode.js +++ b/client/components/tinymce/plugins/contact-form/test/shortcode.js @@ -74,7 +74,10 @@ describe( 'contact form shortcode serializer', () => { test( 'should serialize multiple fields', () => { const shortcode = serialize( { - fields: [ { type: 'text', label: 'First Name' }, { type: 'text', label: 'Last Name' } ], + fields: [ + { type: 'text', label: 'First Name' }, + { type: 'text', label: 'Last Name' }, + ], } ); assert.equal( diff --git a/client/components/tinymce/plugins/simple-payments/dialog/product-image-picker.jsx b/client/components/tinymce/plugins/simple-payments/dialog/product-image-picker.jsx index fe4fca34841b4..575dc0fb570e7 100644 --- a/client/components/tinymce/plugins/simple-payments/dialog/product-image-picker.jsx +++ b/client/components/tinymce/plugins/simple-payments/dialog/product-image-picker.jsx @@ -142,7 +142,6 @@ class ProductImagePicker extends Component { } } -export default connect( - state => ( { siteId: getSelectedSiteId( state ) } ), - { requestMediaItem } -)( localize( ProductImagePicker ) ); +export default connect( state => ( { siteId: getSelectedSiteId( state ) } ), { requestMediaItem } )( + localize( ProductImagePicker ) +); diff --git a/client/components/tinymce/plugins/wpcom-view/plugin.js b/client/components/tinymce/plugins/wpcom-view/plugin.js index 5d16decca5978..38f694ba8d1d1 100644 --- a/client/components/tinymce/plugins/wpcom-view/plugin.js +++ b/client/components/tinymce/plugins/wpcom-view/plugin.js @@ -355,9 +355,7 @@ function wpview( editor ) { if ( imageMatch ) { // If the link looks like an image, replace the pasted content with an tag. // As a side effect, this won't request an embed code to the REST API anymore. - event.content = ``; + event.content = ``; } else if ( /^https?:\/\/\S+$/i.test( pastedStr ) ) { // Otherwise replace the content with the cleaned URL. event.content = pastedStr; diff --git a/client/components/token-field/test/lib/fixtures.js b/client/components/token-field/test/lib/fixtures.js index 72674480db59d..cf9d7e2515e32 100644 --- a/client/components/token-field/test/lib/fixtures.js +++ b/client/components/token-field/test/lib/fixtures.js @@ -26,7 +26,10 @@ export default { [ 'Tags ', '&', ' Stuff' ], [ 'Tags ', '&', ' Stuff 2' ], ], - matchAmpersandSequence: [ [ 'Tag', 's &', ' Stuff' ], [ 'Tag', 's &', ' Stuff 2' ] ], + matchAmpersandSequence: [ + [ 'Tag', 's &', ' Stuff' ], + [ 'Tag', 's &', ' Stuff 2' ], + ], matchAmpersandEscaped: [], }, matchingSuggestions: { diff --git a/client/components/virtual-list/index.jsx b/client/components/virtual-list/index.jsx index 3ed3bace44a1d..40a4cc6928392 100644 --- a/client/components/virtual-list/index.jsx +++ b/client/components/virtual-list/index.jsx @@ -94,13 +94,13 @@ export class VirtualList extends Component { hasNoSearchResults() { return ( ! this.props.loading && - ( this.props.items && ! this.props.items.length ) && - ( this.props.query.search && !! this.props.query.search.length ) + this.props.items && ! this.props.items.length && + this.props.query.search && !! this.props.query.search.length ); } hasNoRows() { - return ! this.props.loading && ( this.props.items && ! this.props.items.length ); + return ! this.props.loading && this.props.items && ! this.props.items.length; } getRowCount() { diff --git a/client/components/web-preview/component.jsx b/client/components/web-preview/component.jsx index 63081b11e2a35..a33d26f8290e6 100644 --- a/client/components/web-preview/component.jsx +++ b/client/components/web-preview/component.jsx @@ -180,10 +180,9 @@ export class WebPreviewModal extends Component { } } -const ConnectedWebPreviewModal = connect( - null, - { setPreviewShowing } -)( localize( WebPreviewModal ) ); +const ConnectedWebPreviewModal = connect( null, { setPreviewShowing } )( + localize( WebPreviewModal ) +); const WebPreviewInner = ( { isContentOnly, ...restProps } ) => { const WebPreviewComponent = isContentOnly ? WebPreviewContent : ConnectedWebPreviewModal; diff --git a/client/components/web-preview/content.jsx b/client/components/web-preview/content.jsx index fb7b9bdb8fdf4..34612d4effded 100644 --- a/client/components/web-preview/content.jsx +++ b/client/components/web-preview/content.jsx @@ -394,7 +394,4 @@ const mapState = state => ( { isInlineHelpPopoverVisible: isInlineHelpPopoverVisible( state ), } ); -export default connect( - mapState, - { recordTracksEvent } -)( localize( WebPreviewContent ) ); +export default connect( mapState, { recordTracksEvent } )( localize( WebPreviewContent ) ); diff --git a/client/components/web-preview/toolbar.jsx b/client/components/web-preview/toolbar.jsx index 4c5408a5319e8..a7334dc4dc7d6 100644 --- a/client/components/web-preview/toolbar.jsx +++ b/client/components/web-preview/toolbar.jsx @@ -168,9 +168,6 @@ class PreviewToolbar extends Component { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( PreviewToolbar ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( PreviewToolbar ) ); diff --git a/client/devdocs/design/component-examples.js b/client/devdocs/design/component-examples.js index 8e7b90c025020..8bcaa1a29483d 100644 --- a/client/devdocs/design/component-examples.js +++ b/client/devdocs/design/component-examples.js @@ -52,9 +52,7 @@ export { default as LanguagePicker } from 'components/language-picker/docs/examp export { default as LineChart } from 'components/line-chart/docs/example'; export { default as ListEnd } from 'components/list-end/docs/example'; export { default as MarkedLinesExample } from 'components/marked-lines/docs/example'; -export { - default as MultipleChoiceQuestionExample, -} from 'components/multiple-choice-question/docs/example'; +export { default as MultipleChoiceQuestionExample } from 'components/multiple-choice-question/docs/example'; export { default as Notices } from 'components/notice/docs/example'; export { default as PaginationExample } from 'components/pagination/docs/example'; export { default as PaymentLogo } from 'components/payment-logo/docs/example'; @@ -66,9 +64,7 @@ export { default as PromoCard } from 'components/promo-section/promo-card/docs/e export { default as Ranges } from 'components/forms/range/docs/example'; export { default as Rating } from 'components/rating/docs/example'; export { default as Ribbon } from '@automattic/components/src/ribbon/docs/example'; -export { - default as ScreenReaderTextExample, -} from '@automattic/components/src/screen-reader-text/docs/example'; +export { default as ScreenReaderTextExample } from '@automattic/components/src/screen-reader-text/docs/example'; export { default as SearchDemo } from 'components/search/docs/example'; export { default as SectionHeader } from 'components/section-header/docs/example'; export { default as SectionNav } from 'components/section-nav/docs/example'; diff --git a/client/devdocs/design/index.jsx b/client/devdocs/design/index.jsx index 80de823dbaf78..851c9641cb30d 100644 --- a/client/devdocs/design/index.jsx +++ b/client/devdocs/design/index.jsx @@ -318,10 +318,7 @@ if ( config.isEnabled( 'devdocs/components-usage-stats' ) ) { dispatchFetchComponentsUsageStats: PropTypes.func, }; - DesignAssetsExport = connect( - mapStateToProps, - mapDispatchToProps - )( DesignAssets ); + DesignAssetsExport = connect( mapStateToProps, mapDispatchToProps )( DesignAssets ); } export default DesignAssetsExport; diff --git a/client/devdocs/design/playground.jsx b/client/devdocs/design/playground.jsx index ffb091ece79bd..e9af08f9a8743 100644 --- a/client/devdocs/design/playground.jsx +++ b/client/devdocs/design/playground.jsx @@ -179,10 +179,7 @@ if ( config.isEnabled( 'devdocs/components-usage-stats' ) ) { dispatchFetchComponentsUsageStats: PropTypes.func, }; - connectedDesignAssets = connect( - mapStateToProps, - mapDispatchToProps - )( DesignAssets ); + connectedDesignAssets = connect( mapStateToProps, mapDispatchToProps )( DesignAssets ); } export default connectedDesignAssets || DesignAssets; diff --git a/client/devdocs/error.jsx b/client/devdocs/error.jsx index 04262ed22c573..37a65b681c02a 100644 --- a/client/devdocs/error.jsx +++ b/client/devdocs/error.jsx @@ -15,7 +15,7 @@ export default class extends React.PureComponent {

Sorry, we can't find that page right now

WordPress

- Are we missing documentation? Could our docs be improved? Let us know by{' '} + Are we missing documentation? Could our docs be improved? Let us know by{ ' ' } filing a GitHub issue!

diff --git a/client/devdocs/welcome.jsx b/client/devdocs/welcome.jsx index 028753ba7af7b..57736aff9deac 100644 --- a/client/devdocs/welcome.jsx +++ b/client/devdocs/welcome.jsx @@ -23,7 +23,7 @@ export default class extends React.PureComponent { src="/calypso/images/illustrations/illustration-nosites.svg" />

- This is your local running copy of Calypso. If you want a quick start,{' '} + This is your local running copy of Calypso. If you want a quick start,{ ' ' } check the Guide. To access the documentation at any time, use the small badge in the bottom right corner.

diff --git a/client/extensions/hello-dolly/hello-dolly-page.js b/client/extensions/hello-dolly/hello-dolly-page.js index 914696592441f..6f73fb337cb8f 100644 --- a/client/extensions/hello-dolly/hello-dolly-page.js +++ b/client/extensions/hello-dolly/hello-dolly-page.js @@ -118,7 +118,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( HelloDollyPage ); +export default connect( mapStateToProps, mapDispatchToProps )( HelloDollyPage ); diff --git a/client/extensions/woocommerce/app/dashboard/index.js b/client/extensions/woocommerce/app/dashboard/index.js index 1059b10e1a2e6..0b31afee8683d 100644 --- a/client/extensions/woocommerce/app/dashboard/index.js +++ b/client/extensions/woocommerce/app/dashboard/index.js @@ -296,7 +296,4 @@ function mapStateToProps( state ) { }; } -export default connect( - mapStateToProps, - { fetchCounts } -)( localize( Dashboard ) ); +export default connect( mapStateToProps, { fetchCounts } )( localize( Dashboard ) ); diff --git a/client/extensions/woocommerce/app/dashboard/manage-orders-view.js b/client/extensions/woocommerce/app/dashboard/manage-orders-view.js index 35ae4e00cbc5d..46a154531f862 100644 --- a/client/extensions/woocommerce/app/dashboard/manage-orders-view.js +++ b/client/extensions/woocommerce/app/dashboard/manage-orders-view.js @@ -212,7 +212,4 @@ function mapStateToProps( state ) { }; } -export default connect( - mapStateToProps, - { fetchCounts } -)( localize( ManageOrdersView ) ); +export default connect( mapStateToProps, { fetchCounts } )( localize( ManageOrdersView ) ); diff --git a/client/extensions/woocommerce/app/dashboard/required-pages-setup-view.js b/client/extensions/woocommerce/app/dashboard/required-pages-setup-view.js index 7ef4bb59fa117..fa5c9d513d824 100644 --- a/client/extensions/woocommerce/app/dashboard/required-pages-setup-view.js +++ b/client/extensions/woocommerce/app/dashboard/required-pages-setup-view.js @@ -66,7 +66,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( RequiredPagesSetupView ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( RequiredPagesSetupView ) ); diff --git a/client/extensions/woocommerce/app/dashboard/setup/index.js b/client/extensions/woocommerce/app/dashboard/setup/index.js index 73a2b93ddc1fc..4c0c998d9e69c 100644 --- a/client/extensions/woocommerce/app/dashboard/setup/index.js +++ b/client/extensions/woocommerce/app/dashboard/setup/index.js @@ -93,7 +93,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SetupTasksView ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SetupTasksView ) ); diff --git a/client/extensions/woocommerce/app/dashboard/setup/store-location.js b/client/extensions/woocommerce/app/dashboard/setup/store-location.js index e331361b4a103..b03844a751e48 100644 --- a/client/extensions/woocommerce/app/dashboard/setup/store-location.js +++ b/client/extensions/woocommerce/app/dashboard/setup/store-location.js @@ -339,7 +339,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( StoreLocationSetupView ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( StoreLocationSetupView ) ); diff --git a/client/extensions/woocommerce/app/dashboard/setup/tasks.js b/client/extensions/woocommerce/app/dashboard/setup/tasks.js index d602a26d9cb0d..29502a858e939 100644 --- a/client/extensions/woocommerce/app/dashboard/setup/tasks.js +++ b/client/extensions/woocommerce/app/dashboard/setup/tasks.js @@ -192,7 +192,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SetupTasks ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SetupTasks ) ); diff --git a/client/extensions/woocommerce/app/index.js b/client/extensions/woocommerce/app/index.js index 71398052575db..2b037d2f40915 100644 --- a/client/extensions/woocommerce/app/index.js +++ b/client/extensions/woocommerce/app/index.js @@ -191,7 +191,4 @@ function mapStateToProps( state ) { }; } -export default connect( - mapStateToProps, - { fetchSetupChoices } -)( localize( App ) ); +export default connect( mapStateToProps, { fetchSetupChoices } )( localize( App ) ); diff --git a/client/extensions/woocommerce/app/order/order-payment/index.js b/client/extensions/woocommerce/app/order/order-payment/index.js index 6746eff2b0025..26c12b4c9be17 100644 --- a/client/extensions/woocommerce/app/order/order-payment/index.js +++ b/client/extensions/woocommerce/app/order/order-payment/index.js @@ -141,7 +141,6 @@ class OrderPaymentCard extends Component { } } -export default connect( - null, - dispatch => bindActionCreators( { saveOrder }, dispatch ) -)( localize( OrderPaymentCard ) ); +export default connect( null, dispatch => bindActionCreators( { saveOrder }, dispatch ) )( + localize( OrderPaymentCard ) +); diff --git a/client/extensions/woocommerce/app/orders/orders-list.js b/client/extensions/woocommerce/app/orders/orders-list.js index 30360d30109ec..8be85589ca981 100644 --- a/client/extensions/woocommerce/app/orders/orders-list.js +++ b/client/extensions/woocommerce/app/orders/orders-list.js @@ -157,7 +157,7 @@ class Orders extends Component { { refundValue ? ( - { total }{' '} + { total }{ ' ' } { formatCurrency( remainingTotal, order.currency ) } ) : ( diff --git a/client/extensions/woocommerce/app/product-categories/create.js b/client/extensions/woocommerce/app/product-categories/create.js index 130366dee21dc..3a11819748628 100644 --- a/client/extensions/woocommerce/app/product-categories/create.js +++ b/client/extensions/woocommerce/app/product-categories/create.js @@ -122,7 +122,7 @@ class ProductCategoryCreate extends React.Component { const saveEnabled = hasEdits && category && - ( category.name && category.name.length ) && + category.name && category.name.length && ! isNull( category.parent ) && ! isUploading; @@ -176,7 +176,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductCategoryCreate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductCategoryCreate ) ); diff --git a/client/extensions/woocommerce/app/product-categories/form.js b/client/extensions/woocommerce/app/product-categories/form.js index 9f4f7ebdf4a13..56a61e4384e51 100644 --- a/client/extensions/woocommerce/app/product-categories/form.js +++ b/client/extensions/woocommerce/app/product-categories/form.js @@ -271,7 +271,7 @@ class ProductCategoryForm extends Component { { translate( 'Top level category', { context: 'Categories: New category being created is top level i.e. has no parent', - } ) }{' '} + } ) }{ ' ' }
diff --git a/client/extensions/woocommerce/app/product-categories/header.js b/client/extensions/woocommerce/app/product-categories/header.js index 0d0ffe90d8e6d..d72c57c1762a9 100644 --- a/client/extensions/woocommerce/app/product-categories/header.js +++ b/client/extensions/woocommerce/app/product-categories/header.js @@ -62,8 +62,8 @@ const ProductCategoryHeader = ( { onDelete, onSave, translate, site, category, i const breadcrumbs = [ { translate( 'Products' ) } , - {' '} - { translate( 'Categories' ) }{' '} + { ' ' } + { translate( 'Categories' ) }{ ' ' } , currentCrumb, ]; diff --git a/client/extensions/woocommerce/app/product-categories/index.js b/client/extensions/woocommerce/app/product-categories/index.js index 5cbdb0f83716c..15871ec57052d 100644 --- a/client/extensions/woocommerce/app/product-categories/index.js +++ b/client/extensions/woocommerce/app/product-categories/index.js @@ -145,7 +145,4 @@ const mapDispatchToProps = dispatch => ( { fetchProductCategories: ( ...args ) => fetchProductCategories( ...args )( dispatch ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductCategories ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductCategories ) ); diff --git a/client/extensions/woocommerce/app/product-categories/list.js b/client/extensions/woocommerce/app/product-categories/list.js index c55227e99dca4..9cff38f7e5ee1 100644 --- a/client/extensions/woocommerce/app/product-categories/list.js +++ b/client/extensions/woocommerce/app/product-categories/list.js @@ -212,7 +212,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductCategories ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductCategories ) ); diff --git a/client/extensions/woocommerce/app/product-categories/update.js b/client/extensions/woocommerce/app/product-categories/update.js index 0fdfcdd559b60..0e7b24c12388d 100644 --- a/client/extensions/woocommerce/app/product-categories/update.js +++ b/client/extensions/woocommerce/app/product-categories/update.js @@ -172,7 +172,7 @@ class ProductCategoryUpdate extends React.Component { const saveEnabled = hasEdits && category && - ( category.name && category.name.length ) && + category.name && category.name.length && ! isNull( category.parent ) && ! isUploading; @@ -233,7 +233,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductCategoryUpdate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductCategoryUpdate ) ); diff --git a/client/extensions/woocommerce/app/products/index.js b/client/extensions/woocommerce/app/products/index.js index 6b7fb67a2ca42..587f3eaefcd5a 100644 --- a/client/extensions/woocommerce/app/products/index.js +++ b/client/extensions/woocommerce/app/products/index.js @@ -153,7 +153,4 @@ function mapDispatchToProps( dispatch ) { return bindActionCreators( { fetchProducts }, dispatch ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( Products ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( Products ) ); diff --git a/client/extensions/woocommerce/app/products/product-create.js b/client/extensions/woocommerce/app/products/product-create.js index 3a4939de9a535..3059b2af25c11 100644 --- a/client/extensions/woocommerce/app/products/product-create.js +++ b/client/extensions/woocommerce/app/products/product-create.js @@ -269,7 +269,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductCreate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductCreate ) ); diff --git a/client/extensions/woocommerce/app/products/product-update.js b/client/extensions/woocommerce/app/products/product-update.js index ac8c1511ea281..e7313d4327768 100644 --- a/client/extensions/woocommerce/app/products/product-update.js +++ b/client/extensions/woocommerce/app/products/product-update.js @@ -278,7 +278,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ProductUpdate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ProductUpdate ) ); diff --git a/client/extensions/woocommerce/app/promotions/index.js b/client/extensions/woocommerce/app/promotions/index.js index 01b588ad29c03..6e29b036dfe48 100644 --- a/client/extensions/woocommerce/app/promotions/index.js +++ b/client/extensions/woocommerce/app/promotions/index.js @@ -136,7 +136,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( Promotions ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( Promotions ) ); diff --git a/client/extensions/woocommerce/app/promotions/promotion-create.js b/client/extensions/woocommerce/app/promotions/promotion-create.js index ea11e5ad4848a..9eb983e8c036d 100644 --- a/client/extensions/woocommerce/app/promotions/promotion-create.js +++ b/client/extensions/woocommerce/app/promotions/promotion-create.js @@ -226,7 +226,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PromotionCreate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PromotionCreate ) ); diff --git a/client/extensions/woocommerce/app/promotions/promotion-update.js b/client/extensions/woocommerce/app/promotions/promotion-update.js index 3ca74a8bb5279..1f243d6267f01 100644 --- a/client/extensions/woocommerce/app/promotions/promotion-update.js +++ b/client/extensions/woocommerce/app/promotions/promotion-update.js @@ -266,7 +266,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PromotionUpdate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PromotionUpdate ) ); diff --git a/client/extensions/woocommerce/app/promotions/promotions-list.js b/client/extensions/woocommerce/app/promotions/promotions-list.js index 484dbef61817b..77bddae5fd57e 100644 --- a/client/extensions/woocommerce/app/promotions/promotions-list.js +++ b/client/extensions/woocommerce/app/promotions/promotions-list.js @@ -122,9 +122,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PromotionsList ) -); +export default localize( connect( mapStateToProps, mapDispatchToProps )( PromotionsList ) ); diff --git a/client/extensions/woocommerce/app/reviews/review-actions-bar.js b/client/extensions/woocommerce/app/reviews/review-actions-bar.js index 124c376d98147..061142d69da9d 100644 --- a/client/extensions/woocommerce/app/reviews/review-actions-bar.js +++ b/client/extensions/woocommerce/app/reviews/review-actions-bar.js @@ -111,7 +111,4 @@ const mapDispatchToProps = ( dispatch, ownProps ) => { }; }; -export default connect( - null, - mapDispatchToProps -)( localize( ReviewActionsBar ) ); +export default connect( null, mapDispatchToProps )( localize( ReviewActionsBar ) ); diff --git a/client/extensions/woocommerce/app/reviews/review-reply-create.js b/client/extensions/woocommerce/app/reviews/review-reply-create.js index e8af7f31b27f3..61696f429891c 100644 --- a/client/extensions/woocommerce/app/reviews/review-reply-create.js +++ b/client/extensions/woocommerce/app/reviews/review-reply-create.js @@ -168,7 +168,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ReviewReplyCreate ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ReviewReplyCreate ) ); diff --git a/client/extensions/woocommerce/app/reviews/review-reply.js b/client/extensions/woocommerce/app/reviews/review-reply.js index 900b509a92885..f464a5867a875 100644 --- a/client/extensions/woocommerce/app/reviews/review-reply.js +++ b/client/extensions/woocommerce/app/reviews/review-reply.js @@ -159,18 +159,15 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - ( state, props ) => { - const reply = getReviewReply( state, props.reviewId, props.replyId ); - const isEditing = props.replyId === getCurrentlyEditingReviewReplyId( state ); - const replyEdits = getReviewReplyEdits( state ); - const editContent = replyEdits.content || ''; - return { - reply, - isEditing, - replyEdits, - editContent, - }; - }, - mapDispatchToProps -)( localize( ReviewReply ) ); +export default connect( ( state, props ) => { + const reply = getReviewReply( state, props.reviewId, props.replyId ); + const isEditing = props.replyId === getCurrentlyEditingReviewReplyId( state ); + const replyEdits = getReviewReplyEdits( state ); + const editContent = replyEdits.content || ''; + return { + reply, + isEditing, + replyEdits, + editContent, + }; +}, mapDispatchToProps )( localize( ReviewReply ) ); diff --git a/client/extensions/woocommerce/app/settings/email/email-settings/index.js b/client/extensions/woocommerce/app/settings/email/email-settings/index.js index 431eae0b6323a..fd0c97bbf7feb 100644 --- a/client/extensions/woocommerce/app/settings/email/email-settings/index.js +++ b/client/extensions/woocommerce/app/settings/email/email-settings/index.js @@ -293,7 +293,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( Settings ); +export default connect( mapStateToProps, mapDispatchToProps )( Settings ); diff --git a/client/extensions/woocommerce/app/settings/email/index.js b/client/extensions/woocommerce/app/settings/email/index.js index 00698c23ab15e..f07c90e5ac381 100644 --- a/client/extensions/woocommerce/app/settings/email/index.js +++ b/client/extensions/woocommerce/app/settings/email/index.js @@ -114,7 +114,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SettingsEmail ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SettingsEmail ) ); diff --git a/client/extensions/woocommerce/app/settings/email/mailchimp/index.js b/client/extensions/woocommerce/app/settings/email/mailchimp/index.js index a072df9800280..f653853d42528 100644 --- a/client/extensions/woocommerce/app/settings/email/mailchimp/index.js +++ b/client/extensions/woocommerce/app/settings/email/mailchimp/index.js @@ -58,9 +58,9 @@ class MailChimp extends React.Component { } = this.props; const { setupWizardStarted } = this.state; const isRequestingData = isRequestingMailChimpSettings || isRequestingPlugins; - const mailChimpIsReady = ! isRequestingData && ( settings && settings.active_tab === 'sync' ); + const mailChimpIsReady = ! isRequestingData && settings && settings.active_tab === 'sync'; const gettingStarted = - ! setupWizardStarted && ! isRequestingData && ( settings && settings.active_tab !== 'sync' ); + ! setupWizardStarted && ! isRequestingData && settings && settings.active_tab !== 'sync'; // TODO Eventually re-implement a new dashboard widget for extension // that accomodates sites without the plugin installed diff --git a/client/extensions/woocommerce/app/settings/payments/index.js b/client/extensions/woocommerce/app/settings/payments/index.js index 27a9d06a4e4ca..518414d8d53ca 100644 --- a/client/extensions/woocommerce/app/settings/payments/index.js +++ b/client/extensions/woocommerce/app/settings/payments/index.js @@ -179,7 +179,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SettingsPayments ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SettingsPayments ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/payment-method-item.js b/client/extensions/woocommerce/app/settings/payments/payment-method-item.js index c06484d612d1f..975f116a1ee2f 100644 --- a/client/extensions/woocommerce/app/settings/payments/payment-method-item.js +++ b/client/extensions/woocommerce/app/settings/payments/payment-method-item.js @@ -263,9 +263,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PaymentMethodItem ) -); +export default localize( connect( mapStateToProps, mapDispatchToProps )( PaymentMethodItem ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/payment-method-list.js b/client/extensions/woocommerce/app/settings/payments/payment-method-list.js index 20a23114ed20d..ead31613915e0 100644 --- a/client/extensions/woocommerce/app/settings/payments/payment-method-list.js +++ b/client/extensions/woocommerce/app/settings/payments/payment-method-list.js @@ -112,8 +112,5 @@ function mapDispatchToProps( dispatch ) { } export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( SettingsPaymentsMethodList ) + connect( mapStateToProps, mapDispatchToProps )( SettingsPaymentsMethodList ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/payment-method-stripe.js b/client/extensions/woocommerce/app/settings/payments/payment-method-stripe.js index 9b672d43e3884..613c4b79c6860 100644 --- a/client/extensions/woocommerce/app/settings/payments/payment-method-stripe.js +++ b/client/extensions/woocommerce/app/settings/payments/payment-method-stripe.js @@ -224,9 +224,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PaymentMethodStripe ) -); +export default localize( connect( mapStateToProps, mapDispatchToProps )( PaymentMethodStripe ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/payments-location-currency.js b/client/extensions/woocommerce/app/settings/payments/payments-location-currency.js index 78764ea10e2b6..666e23cd5bf92 100644 --- a/client/extensions/woocommerce/app/settings/payments/payments-location-currency.js +++ b/client/extensions/woocommerce/app/settings/payments/payments-location-currency.js @@ -131,8 +131,5 @@ function mapDispatchToProps( dispatch ) { } export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( SettingsPaymentsLocationCurrency ) + connect( mapStateToProps, mapDispatchToProps )( SettingsPaymentsLocationCurrency ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-complete-oauth-dialog.js b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-complete-oauth-dialog.js index 5f874856712f9..cfd947e404406 100644 --- a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-complete-oauth-dialog.js +++ b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-complete-oauth-dialog.js @@ -160,8 +160,5 @@ function mapDispatchToProps( dispatch ) { } export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PaymentMethodStripeCompleteOAuthDialog ) + connect( mapStateToProps, mapDispatchToProps )( PaymentMethodStripeCompleteOAuthDialog ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-connected-dialog.js b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-connected-dialog.js index 429f44aba3810..c6752ac18ebfe 100644 --- a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-connected-dialog.js +++ b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-connected-dialog.js @@ -248,8 +248,5 @@ function mapDispatchToProps( dispatch ) { } export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PaymentMethodStripeConnectedDialog ) + connect( mapStateToProps, mapDispatchToProps )( PaymentMethodStripeConnectedDialog ) ); diff --git a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-setup-dialog.js b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-setup-dialog.js index 7095f5b5fd308..54ab534d3534b 100644 --- a/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-setup-dialog.js +++ b/client/extensions/woocommerce/app/settings/payments/stripe/payment-method-stripe-setup-dialog.js @@ -200,8 +200,5 @@ function mapDispatchToProps( dispatch ) { } export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( PaymentMethodStripeSetupDialog ) + connect( mapStateToProps, mapDispatchToProps )( PaymentMethodStripeSetupDialog ) ); diff --git a/client/extensions/woocommerce/app/settings/shipping/shipping-units.js b/client/extensions/woocommerce/app/settings/shipping/shipping-units.js index 128c5ee071d7f..e76e87ebfe6f5 100644 --- a/client/extensions/woocommerce/app/settings/shipping/shipping-units.js +++ b/client/extensions/woocommerce/app/settings/shipping/shipping-units.js @@ -134,7 +134,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ShippingUnits ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ShippingUnits ) ); diff --git a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/flat-rate.js b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/flat-rate.js index 20116af27d734..99e3b2c8a07fd 100644 --- a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/flat-rate.js +++ b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/flat-rate.js @@ -49,15 +49,12 @@ FreeShippingMethod.propTypes = { currency: PropTypes.string, }; -export default connect( - null, - ( dispatch, ownProps ) => ( { - actions: bindActionCreatorsWithSiteId( - { - setShippingCost, - }, - dispatch, - ownProps.siteId - ), - } ) -)( localize( FreeShippingMethod ) ); +export default connect( null, ( dispatch, ownProps ) => ( { + actions: bindActionCreatorsWithSiteId( + { + setShippingCost, + }, + dispatch, + ownProps.siteId + ), +} ) )( localize( FreeShippingMethod ) ); diff --git a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/free-shipping.js b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/free-shipping.js index 6698068a59e1b..505ef7b2aab11 100644 --- a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/free-shipping.js +++ b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/free-shipping.js @@ -96,16 +96,13 @@ FreeShippingMethod.propTypes = { currency: PropTypes.string, }; -export default connect( - null, - ( dispatch, ownProps ) => ( { - actions: bindActionCreatorsWithSiteId( - { - setFreeShippingCondition, - setFreeShippingMinCost, - }, - dispatch, - ownProps.siteId - ), - } ) -)( localize( FreeShippingMethod ) ); +export default connect( null, ( dispatch, ownProps ) => ( { + actions: bindActionCreatorsWithSiteId( + { + setFreeShippingCondition, + setFreeShippingMinCost, + }, + dispatch, + ownProps.siteId + ), +} ) )( localize( FreeShippingMethod ) ); diff --git a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/local-pickup.js b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/local-pickup.js index 2137f0fbb0eb2..7a924811e98c3 100644 --- a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/local-pickup.js +++ b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/local-pickup.js @@ -36,15 +36,12 @@ LocalPickupMethod.propTypes = { currency: PropTypes.string, }; -export default connect( - null, - ( dispatch, ownProps ) => ( { - actions: bindActionCreatorsWithSiteId( - { - setShippingCost, - }, - dispatch, - ownProps.siteId - ), - } ) -)( localize( LocalPickupMethod ) ); +export default connect( null, ( dispatch, ownProps ) => ( { + actions: bindActionCreatorsWithSiteId( + { + setShippingCost, + }, + dispatch, + ownProps.siteId + ), +} ) )( localize( LocalPickupMethod ) ); diff --git a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-zone-header.js b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-zone-header.js index 17f2dd3afcaa1..65081b29f6221 100644 --- a/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-zone-header.js +++ b/client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-zone-header.js @@ -40,8 +40,8 @@ const ShippingZoneHeader = ( { const breadcrumbs = [ { translate( 'Settings' ) } , - {' '} - { translate( 'Shipping' ) }{' '} + { ' ' } + { translate( 'Shipping' ) }{ ' ' } , currentCrumb, ]; diff --git a/client/extensions/woocommerce/app/settings/taxes/index.js b/client/extensions/woocommerce/app/settings/taxes/index.js index ad01189e9b52b..9cd88644f6a7e 100644 --- a/client/extensions/woocommerce/app/settings/taxes/index.js +++ b/client/extensions/woocommerce/app/settings/taxes/index.js @@ -115,7 +115,4 @@ function mapDispatchToProps( dispatch ) { dispatch ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SettingsTaxes ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SettingsTaxes ) ); diff --git a/client/extensions/woocommerce/app/settings/taxes/taxes-rates.js b/client/extensions/woocommerce/app/settings/taxes/taxes-rates.js index b5f32bee9921b..5e183a218fc3f 100644 --- a/client/extensions/woocommerce/app/settings/taxes/taxes-rates.js +++ b/client/extensions/woocommerce/app/settings/taxes/taxes-rates.js @@ -295,7 +295,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( TaxesRates ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( TaxesRates ) ); diff --git a/client/extensions/woocommerce/app/store-stats/referrers/test/helpers.js b/client/extensions/woocommerce/app/store-stats/referrers/test/helpers.js index cb4b43fe0f01e..f8e46d5defe21 100644 --- a/client/extensions/woocommerce/app/store-stats/referrers/test/helpers.js +++ b/client/extensions/woocommerce/app/store-stats/referrers/test/helpers.js @@ -15,7 +15,10 @@ describe( 'sortBySales', () => { const data = [ { sales: 2 }, { sales: 1 }, { sales: 5 }, { sales: 4 }, { sales: 3 } ]; const sortedAndTrimmed = sortBySales( data, 3 ); assert.lengthOf( sortedAndTrimmed, 3 ); - assert.deepEqual( sortedAndTrimmed.map( d => d.sales ), [ 5, 4, 3 ] ); + assert.deepEqual( + sortedAndTrimmed.map( d => d.sales ), + [ 5, 4, 3 ] + ); } ); test( 'should return a sorted and untrimmed array if no limit is supplied', () => { diff --git a/client/extensions/woocommerce/components/form-dimensions-input/index.jsx b/client/extensions/woocommerce/components/form-dimensions-input/index.jsx index c1c215de67ab3..9916226701a6a 100644 --- a/client/extensions/woocommerce/components/form-dimensions-input/index.jsx +++ b/client/extensions/woocommerce/components/form-dimensions-input/index.jsx @@ -114,7 +114,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( FormDimensionsInput ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( FormDimensionsInput ) ); diff --git a/client/extensions/woocommerce/components/form-weight-input/index.js b/client/extensions/woocommerce/components/form-weight-input/index.js index 84c384f38ba6d..4c1012abf6545 100644 --- a/client/extensions/woocommerce/components/form-weight-input/index.js +++ b/client/extensions/woocommerce/components/form-weight-input/index.js @@ -88,7 +88,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( FormWeightInput ); +export default connect( mapStateToProps, mapDispatchToProps )( FormWeightInput ); diff --git a/client/extensions/woocommerce/components/product-image-uploader/index.js b/client/extensions/woocommerce/components/product-image-uploader/index.js index 6e45fe0d790ed..04dcb8aa776b5 100644 --- a/client/extensions/woocommerce/components/product-image-uploader/index.js +++ b/client/extensions/woocommerce/components/product-image-uploader/index.js @@ -282,7 +282,6 @@ function mapStateToProps( state ) { }; } -export default connect( - mapStateToProps, - { errorNotice: errorNoticeAction } -)( localize( ProductImageUploader ) ); +export default connect( mapStateToProps, { errorNotice: errorNoticeAction } )( + localize( ProductImageUploader ) +); diff --git a/client/extensions/woocommerce/components/query-locations/index.js b/client/extensions/woocommerce/components/query-locations/index.js index a4554c8826750..f47bc1fcc2fdb 100644 --- a/client/extensions/woocommerce/components/query-locations/index.js +++ b/client/extensions/woocommerce/components/query-locations/index.js @@ -33,7 +33,6 @@ class QueryLocations extends Component { }; } -export default connect( - null, - dispatch => bindActionCreators( { fetchLocations }, dispatch ) -)( QueryLocations ); +export default connect( null, dispatch => bindActionCreators( { fetchLocations }, dispatch ) )( + QueryLocations +); diff --git a/client/extensions/woocommerce/components/query-settings-products/index.js b/client/extensions/woocommerce/components/query-settings-products/index.js index 8003500e8421c..a2ac15e620be3 100644 --- a/client/extensions/woocommerce/components/query-settings-products/index.js +++ b/client/extensions/woocommerce/components/query-settings-products/index.js @@ -35,7 +35,4 @@ class QuerySettingsProducts extends Component { } } -export default connect( - null, - { fetchSettingsProducts } -)( QuerySettingsProducts ); +export default connect( null, { fetchSettingsProducts } )( QuerySettingsProducts ); diff --git a/client/extensions/woocommerce/components/store-address/index.js b/client/extensions/woocommerce/components/store-address/index.js index 7c3b886639ae1..3ea55200788d8 100644 --- a/client/extensions/woocommerce/components/store-address/index.js +++ b/client/extensions/woocommerce/components/store-address/index.js @@ -204,9 +204,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( StoreAddress ) -); +export default localize( connect( mapStateToProps, mapDispatchToProps )( StoreAddress ) ); diff --git a/client/extensions/woocommerce/components/woocommerce-colophon/index.js b/client/extensions/woocommerce/components/woocommerce-colophon/index.js index 915be1557ec74..2b2cecad46eeb 100644 --- a/client/extensions/woocommerce/components/woocommerce-colophon/index.js +++ b/client/extensions/woocommerce/components/woocommerce-colophon/index.js @@ -36,7 +36,4 @@ class WooCommerceColophon extends React.Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( WooCommerceColophon ) ); +export default connect( null, { recordTracksEvent } )( localize( WooCommerceColophon ) ); diff --git a/client/extensions/woocommerce/lib/analytics/test/tracks-utils.js b/client/extensions/woocommerce/lib/analytics/test/tracks-utils.js index e5eafa74f30aa..b543d7fc2a5c9 100644 --- a/client/extensions/woocommerce/lib/analytics/test/tracks-utils.js +++ b/client/extensions/woocommerce/lib/analytics/test/tracks-utils.js @@ -42,10 +42,11 @@ describe( 'recordTrack', () => { }, }; - recordTrack( tracksSpy, noop, tracksStore )( - 'calypso_woocommerce_tracks_utils_test', - eventProps - ); + recordTrack( + tracksSpy, + noop, + tracksStore + )( 'calypso_woocommerce_tracks_utils_test', eventProps ); expect( tracksSpy.recordEvent ).to.have.been.calledWith( 'calypso_woocommerce_tracks_utils_test', @@ -64,10 +65,11 @@ describe( 'recordTrack', () => { }, }; - recordTrack( { recordEvent: noop }, debugSpy, tracksStore )( - 'calypso_woocommerce_tracks_utils_test', - eventProps - ); + recordTrack( + { recordEvent: noop }, + debugSpy, + tracksStore + )( 'calypso_woocommerce_tracks_utils_test', eventProps ); expect( debugSpy ).to.have.been.calledWith( "track 'calypso_woocommerce_tracks_utils_test': ", @@ -101,7 +103,11 @@ describe( 'recordTrack', () => { }, }; - recordTrack( tracksSpy, debugSpy, tracksStore )( 'calypso_woocommerce_tracks_utils_test', { + recordTrack( + tracksSpy, + debugSpy, + tracksStore + )( 'calypso_woocommerce_tracks_utils_test', { a: 1, } ); diff --git a/client/extensions/woocommerce/state/data-layer/orders/test/index.js b/client/extensions/woocommerce/state/data-layer/orders/test/index.js index 7dcd958c3e36b..51d8ebd934c98 100644 --- a/client/extensions/woocommerce/state/data-layer/orders/test/index.js +++ b/client/extensions/woocommerce/state/data-layer/orders/test/index.js @@ -66,7 +66,10 @@ describe( 'handlers', () => { describe( '#receivedOrders', () => { test( 'should dispatch a success action on a good response', () => { - const orders = [ { id: 1, total: '50.00' }, { id: 2, total: '12.50' } ]; + const orders = [ + { id: 1, total: '50.00' }, + { id: 2, total: '12.50' }, + ]; const data = { status: 200, body: orders, diff --git a/client/extensions/woocommerce/state/data-layer/products/test/index.js b/client/extensions/woocommerce/state/data-layer/products/test/index.js index f69560502a81c..c68a9615ff77b 100644 --- a/client/extensions/woocommerce/state/data-layer/products/test/index.js +++ b/client/extensions/woocommerce/state/data-layer/products/test/index.js @@ -340,7 +340,10 @@ describe( 'handlers', () => { test( 'should dispatch a success action on a good response', () => { const dispatch = spy(); - const products = [ { id: 1, name: 'Mittens' }, { id: 2, name: 'Scarf' } ]; + const products = [ + { id: 1, name: 'Mittens' }, + { id: 2, name: 'Scarf' }, + ]; const data = { status: 200, body: products, diff --git a/client/extensions/woocommerce/state/data-layer/ui/shipping-zones/index.js b/client/extensions/woocommerce/state/data-layer/ui/shipping-zones/index.js index bd1a3a4eeaee0..3a8c3d34df214 100644 --- a/client/extensions/woocommerce/state/data-layer/ui/shipping-zones/index.js +++ b/client/extensions/woocommerce/state/data-layer/ui/shipping-zones/index.js @@ -499,7 +499,10 @@ export const getCreateDefaultZoneActionListSteps = state => { steps.push( { description: translate( 'Finishing initial setup' ), onStep: ( dispatch, actionList ) => { - setCreatedDefaultShippingZone( siteId, true )( dispatch ) + setCreatedDefaultShippingZone( + siteId, + true + )( dispatch ) .then( () => dispatch( actionListStepSuccess( actionList ) ) ) .catch( err => dispatch( actionListStepFailure( actionList, err ) ) ); }, diff --git a/client/extensions/woocommerce/state/sites/coupons/test/handlers.js b/client/extensions/woocommerce/state/sites/coupons/test/handlers.js index 09ae57259b630..a3669da153847 100644 --- a/client/extensions/woocommerce/state/sites/coupons/test/handlers.js +++ b/client/extensions/woocommerce/state/sites/coupons/test/handlers.js @@ -48,7 +48,10 @@ describe( 'handlers', () => { test( 'should dispatch a page update', () => { const response = { data: { - body: [ { id: 1, code: '1' }, { id: 2, code: '2' } ], + body: [ + { id: 1, code: '1' }, + { id: 2, code: '2' }, + ], headers: { [ 'X-WP-TotalPages' ]: '1', [ 'X-WP-Total' ]: '2', @@ -78,8 +81,14 @@ describe( 'handlers', () => { const action = fetchCoupons( siteId, { page: 1, per_page: 30 } ); const body1 = [ { id: 1 }, { id: 2, code: '2' } ]; const body2 = [ { id: 1, code: '1' }, { code: '2' } ]; - const body3 = [ { id: 1, code: '1' }, { id: 'x', code: '2' } ]; - const body4 = [ { id: 1, code: '1' }, { id: 2, code: 45 } ]; + const body3 = [ + { id: 1, code: '1' }, + { id: 'x', code: '2' }, + ]; + const body4 = [ + { id: 1, code: '1' }, + { id: 2, code: 45 }, + ]; response.data.body = body1; const result1 = requestCouponsSuccess( action, response ); diff --git a/client/extensions/woocommerce/state/sites/data/locations/selectors.js b/client/extensions/woocommerce/state/sites/data/locations/selectors.js index da22198bda2dc..768e0d0610bb2 100644 --- a/client/extensions/woocommerce/state/sites/data/locations/selectors.js +++ b/client/extensions/woocommerce/state/sites/data/locations/selectors.js @@ -67,18 +67,15 @@ const _getSelectorDependants = numArgs => ( state, ...args ) => { * @param {Number} [siteId] Site ID to check. If not provided, the Site ID selected in the UI will be used * @return {Array} A list of continents, represented by { code, name } pairs. Sorted alphabetically by name. */ -export const getContinents = createSelector( - ( state, siteId = getSelectedSiteId( state ) ) => { - if ( ! areLocationsLoaded( state, siteId ) ) { - return []; - } - const continents = getRawLocations( state, siteId ).map( continent => - omit( continent, 'countries' ) - ); - return sortBy( continents, 'name' ); - }, - _getSelectorDependants( 0 ) -); +export const getContinents = createSelector( ( state, siteId = getSelectedSiteId( state ) ) => { + if ( ! areLocationsLoaded( state, siteId ) ) { + return []; + } + const continents = getRawLocations( state, siteId ).map( continent => + omit( continent, 'countries' ) + ); + return sortBy( continents, 'name' ); +}, _getSelectorDependants( 0 ) ); /** * @param {Object} state Whole Redux state tree diff --git a/client/extensions/woocommerce/state/sites/payment-methods/test/reducer.js b/client/extensions/woocommerce/state/sites/payment-methods/test/reducer.js index 6ba3971b12c89..4331d6bd28db8 100644 --- a/client/extensions/woocommerce/state/sites/payment-methods/test/reducer.js +++ b/client/extensions/woocommerce/state/sites/payment-methods/test/reducer.js @@ -36,7 +36,10 @@ describe( 'reducer', () => { const action = { type: WOOCOMMERCE_PAYMENT_METHODS_REQUEST_SUCCESS, siteId, - data: [ { id: 'foo', title: 'foo' }, { id: 'bar', title: 'bar' } ], + data: [ + { id: 'foo', title: 'foo' }, + { id: 'bar', title: 'bar' }, + ], }; const newState = reducer( state, action ); diff --git a/client/extensions/woocommerce/state/sites/settings/email/test/actions.js b/client/extensions/woocommerce/state/sites/settings/email/test/actions.js index dc7b07b46a808..f4de260c0abd6 100644 --- a/client/extensions/woocommerce/state/sites/settings/email/test/actions.js +++ b/client/extensions/woocommerce/state/sites/settings/email/test/actions.js @@ -254,7 +254,10 @@ describe( 'actions', () => { test( 'should dispatch an success action', () => { const dispatch = spy(); - return emailSettingsSubmitSettings( siteId, settings )( dispatch ).then( () => { + return emailSettingsSubmitSettings( + siteId, + settings + )( dispatch ).then( () => { expect( dispatch ).to.have.been.calledWith( { type: WOOCOMMERCE_EMAIL_SETTINGS_SUBMIT_SUCCESS, siteId, diff --git a/client/extensions/woocommerce/state/sites/shipping-zone-methods/test/selectors.js b/client/extensions/woocommerce/state/sites/shipping-zone-methods/test/selectors.js index 0cf648641c284..9613a1e97c643 100644 --- a/client/extensions/woocommerce/state/sites/shipping-zone-methods/test/selectors.js +++ b/client/extensions/woocommerce/state/sites/shipping-zone-methods/test/selectors.js @@ -73,7 +73,10 @@ describe( 'selectors', () => { woocommerce: { sites: { 123: { - shippingZones: [ { id: 1, methodIds: LOADING }, { id: 2, methodIds: [ 7, 42 ] } ], + shippingZones: [ + { id: 1, methodIds: LOADING }, + { id: 2, methodIds: [ 7, 42 ] }, + ], }, }, }, @@ -98,7 +101,10 @@ describe( 'selectors', () => { 8: { id: 8, methodType: 'wc_services_usps' }, 9: { id: 9, methodType: 'wc_services_usps' }, }, - shippingZones: [ { id: 1, methodIds: [ 7, 8 ] }, { id: 2, methodIds: [ 9 ] } ], + shippingZones: [ + { id: 1, methodIds: [ 7, 8 ] }, + { id: 2, methodIds: [ 9 ] }, + ], }, }, woocommerceServices: { diff --git a/client/extensions/woocommerce/state/sites/shipping-zones/test/selectors.js b/client/extensions/woocommerce/state/sites/shipping-zones/test/selectors.js index defdf419ab45e..08b5d22c071c7 100644 --- a/client/extensions/woocommerce/state/sites/shipping-zones/test/selectors.js +++ b/client/extensions/woocommerce/state/sites/shipping-zones/test/selectors.js @@ -36,7 +36,10 @@ const loadingMethodsAndLoadingLocationsState = { woocommerce: { sites: { 123: { - shippingZones: [ { id: 1, methodIds: [ 3 ] }, { id: 2, methodIds: LOADING } ], + shippingZones: [ + { id: 1, methodIds: [ 3 ] }, + { id: 2, methodIds: LOADING }, + ], shippingZoneLocations: { 1: LOADING, 2: { country: [], continent: [], state: [], postcode: [] }, @@ -52,7 +55,10 @@ const loadedWithMethodsAndLoadingLocationsState = { woocommerce: { sites: { 123: { - shippingZones: [ { id: 1, methodIds: [ 3 ] }, { id: 2, methodIds: [ 7, 42 ] } ], + shippingZones: [ + { id: 1, methodIds: [ 3 ] }, + { id: 2, methodIds: [ 7, 42 ] }, + ], shippingZoneLocations: { 1: LOADING, 2: { country: [], continent: [], state: [], postcode: [] }, @@ -68,7 +74,10 @@ const loadingMethodsAndLoadedLocationsState = { woocommerce: { sites: { 123: { - shippingZones: [ { id: 1, methodIds: [ 3 ] }, { id: 2, methodIds: LOADING } ], + shippingZones: [ + { id: 1, methodIds: [ 3 ] }, + { id: 2, methodIds: LOADING }, + ], shippingZoneLocations: { 1: { country: [], continent: [], state: [], postcode: [] }, 2: { country: [], continent: [], state: [], postcode: [] }, @@ -84,7 +93,10 @@ const loadedWithMethodsAndLocationsState = { woocommerce: { sites: { 123: { - shippingZones: [ { id: 1, methodIds: [ 3 ] }, { id: 2, methodIds: [ 7, 42 ] } ], + shippingZones: [ + { id: 1, methodIds: [ 3 ] }, + { id: 2, methodIds: [ 7, 42 ] }, + ], shippingZoneLocations: { 1: { country: [], continent: [], state: [], postcode: [] }, 2: { country: [], continent: [], state: [], postcode: [] }, diff --git a/client/extensions/woocommerce/state/ui/payments/methods/test/reducer.js b/client/extensions/woocommerce/state/ui/payments/methods/test/reducer.js index 8a1804af92fd1..cf6255f6ceb87 100644 --- a/client/extensions/woocommerce/state/ui/payments/methods/test/reducer.js +++ b/client/extensions/woocommerce/state/ui/payments/methods/test/reducer.js @@ -223,7 +223,10 @@ describe( 'reducer', () => { test( 'should remove edits update state for a single payment method on successful update', () => { const state = { - updates: [ { id: 'stripe', title: 'Testing Stripe' }, { id: 'paypal', title: 'PayPal' } ], + updates: [ + { id: 'stripe', title: 'Testing Stripe' }, + { id: 'paypal', title: 'PayPal' }, + ], }; const action = { diff --git a/client/extensions/woocommerce/state/ui/shipping/zones/methods/test/helpers.js b/client/extensions/woocommerce/state/ui/shipping/zones/methods/test/helpers.js index e7250afeb3251..8af82471911dd 100644 --- a/client/extensions/woocommerce/state/ui/shipping/zones/methods/test/helpers.js +++ b/client/extensions/woocommerce/state/ui/shipping/zones/methods/test/helpers.js @@ -77,7 +77,10 @@ describe( 'mergeMethodEdits', () => { expect( mergeMethodEdits( zoneMethodEdits, currentMethodEdits ) ).to.deep.equal( { creates: [ { id: { index: 0 } }, { id: { index: 1 } } ], - updates: [ { id: 1, title: 'Wololo' }, { id: 3, title: 'Wololo' } ], + updates: [ + { id: 1, title: 'Wololo' }, + { id: 3, title: 'Wololo' }, + ], deletes: [ { id: 2 }, { id: 4 } ], currentlyEditingId: null, currentlyEditingNew: false, diff --git a/client/extensions/woocommerce/store-sidebar/index.js b/client/extensions/woocommerce/store-sidebar/index.js index 180c5a8384c82..fd4e338871eff 100644 --- a/client/extensions/woocommerce/store-sidebar/index.js +++ b/client/extensions/woocommerce/store-sidebar/index.js @@ -308,7 +308,4 @@ function mapDispatchToProps( dispatch ) { ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( StoreSidebar ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( StoreSidebar ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/state/shipping-label/test/actions.js b/client/extensions/woocommerce/woocommerce-services/state/shipping-label/test/actions.js index 844aa2492f97d..8c170ee3cdbad 100644 --- a/client/extensions/woocommerce/woocommerce-services/state/shipping-label/test/actions.js +++ b/client/extensions/woocommerce/woocommerce-services/state/shipping-label/test/actions.js @@ -340,10 +340,11 @@ describe( 'Shipping label Actions', () => { // Mock a successful response mockNormalizationRequest( true ); - return submitAddressForNormalization( orderId, siteId, 'destination' )( - dispatchSpy, - getState - ).then( () => { + return submitAddressForNormalization( + orderId, + siteId, + 'destination' + )( dispatchSpy, getState ).then( () => { expect( dispatchSpy.calledWith( { type: WOOCOMMERCE_SERVICES_SHIPPING_LABEL_TOGGLE_STEP, @@ -360,9 +361,11 @@ describe( 'Shipping label Actions', () => { mockNormalizationRequest( false ); return new Promise( resolve => { - submitAddressForNormalization( orderId, siteId, 'destination' )( () => {}, getState ).catch( - resolve - ); + submitAddressForNormalization( + orderId, + siteId, + 'destination' + )( () => {}, getState ).catch( resolve ); } ); } ); } ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/label-settings/add-credit-card-modal.js b/client/extensions/woocommerce/woocommerce-services/views/label-settings/add-credit-card-modal.js index e194594e34c2c..c58a1a675620e 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/label-settings/add-credit-card-modal.js +++ b/client/extensions/woocommerce/woocommerce-services/views/label-settings/add-credit-card-modal.js @@ -73,7 +73,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeAddCardDialog, addStoredCard }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( AddCardDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( AddCardDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/packages/package-dialog.js b/client/extensions/woocommerce/woocommerce-services/views/packages/package-dialog.js index 7ee4f5682680c..4ca00e602b0fc 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/packages/package-dialog.js +++ b/client/extensions/woocommerce/woocommerce-services/views/packages/package-dialog.js @@ -59,7 +59,10 @@ const AddPackageDialog = props => { //get reserved box names: const boxNames = concat( - difference( customPackages.map( boxPackage => boxPackage.name ), [ editName ] ), //existing custom boxes + difference( + customPackages.map( boxPackage => boxPackage.name ), + [ editName ] + ), //existing custom boxes flatten( map( predefinedSchema, predef => map( predef, group => group.definitions ) ) ), //predefined boxes [ 'individual' ] //reserved for items shipping in original packaging ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/index.js b/client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/index.js index 287f85edb1393..a08a6e4d6f7c6 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/index.js @@ -62,7 +62,4 @@ function mapDispatchToProps( dispatch, ownProps ) { }; } -export default connect( - mapStateToProps, - mapDispatchToProps -)( SettingsForm ); +export default connect( mapStateToProps, mapDispatchToProps )( SettingsForm ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-details-modal.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-details-modal.js index 4fed487e822a2..bed4305d78e37 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-details-modal.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-details-modal.js @@ -108,7 +108,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeDetailsDialog }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( DetailsDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( DetailsDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-item.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-item.js index c98672b075043..74250da686b03 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-item.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-item.js @@ -163,7 +163,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { openRefundDialog, openReprintDialog, openDetailsDialog }, dispatch ); }; -export default connect( - null, - mapDispatchToProps -)( localize( LabelItem ) ); +export default connect( null, mapDispatchToProps )( localize( LabelItem ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/fields.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/fields.js index 8b6b5dfccfc29..331976899aacc 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/fields.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/fields.js @@ -282,7 +282,4 @@ const mapDispatchToProps = dispatch => { ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( AddressFields ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( AddressFields ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/index.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/index.js index 72f32e2d9e0af..6ccf275e2d6ce 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/index.js @@ -128,9 +128,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { toggleStep }, dispatch ); }; -export default localize( - connect( - mapStateToProps, - mapDispatchToProps - )( AddressStep ) -); +export default localize( connect( mapStateToProps, mapDispatchToProps )( AddressStep ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/index.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/index.js index ec6dac60b7992..631d416707815 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/index.js @@ -91,7 +91,4 @@ const mapDispatchToProps = ( dispatch, { orderId, siteId } ) => ( { confirmCustoms: () => dispatch( confirmCustoms( orderId, siteId ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CustomsStep ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CustomsStep ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/item-row.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/item-row.js index 1f1ecad6854e2..27cd448d1753e 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/item-row.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/item-row.js @@ -153,7 +153,4 @@ const mapDispatchToProps = ( dispatch, { orderId, siteId, productId } ) => ( { dispatch( setCustomsItemOriginCountry( orderId, siteId, productId, value ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ItemRow ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ItemRow ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/package-row.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/package-row.js index fb61288ea4b33..fca10e0ab1277 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/package-row.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/package-row.js @@ -211,7 +211,4 @@ const mapDispatchToProps = ( dispatch, { orderId, siteId, packageId } ) => ( { setITN: value => dispatch( setITN( orderId, siteId, packageId, value ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PackageRow ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PackageRow ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js index 202059d6e5b10..223cb63657760 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js @@ -108,7 +108,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { exitPrintingFlow }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PurchaseDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PurchaseDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.js index 1677f90ffde08..c4b420ebdee77 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.js @@ -146,7 +146,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeAddItem, setAddedItem, addItems }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( AddItemDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( AddItemDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/index.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/index.js index 71f36e43ee67f..72ae6d04ce191 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/index.js @@ -149,7 +149,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { toggleStep, confirmPackages }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PackagesStep ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PackagesStep ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/list.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/list.js index 7fa3bb61d2db9..ab710e2e52462 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/list.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/list.js @@ -121,7 +121,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { openPackage }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PackageList ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PackageList ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/move-item.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/move-item.js index 49ae220897ac0..0c1681f0a12e2 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/move-item.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/move-item.js @@ -180,7 +180,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeItemMove, setTargetPackage, moveItem }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( MoveItemDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( MoveItemDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/package-info.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/package-info.js index e73df59bdd2b2..ac8ad10c548b1 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/package-info.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/package-info.js @@ -140,7 +140,7 @@ const PackageInfo = props => { { translate( 'Individually Shipped Item' ) }
- { translate( 'Item Dimensions' ) } -{' '} + { translate( 'Item Dimensions' ) } -{ ' ' } { renderPackageDimensions( pckg, dimensionUnit ) } @@ -162,7 +162,7 @@ const PackageInfo = props => { > {' '} + { ' ' } ) { map( packageGroups, ( group, groupId ) => { if ( isEmpty( group.definitions ) ) { @@ -231,7 +231,7 @@ const PackageInfo = props => { { translate( 'Yes, from an adult', { comment: 'Package requires signature from an adult during delivery.', } ) } - {' '} + { ' ' } ) @@ -280,7 +280,4 @@ const mapDispatchToProps = dispatch => { ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PackageInfo ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PackageInfo ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/purchase-button.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/purchase-button.js index 219f482160b6e..6ee500eab8924 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/purchase-button.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/purchase-button.js @@ -89,7 +89,4 @@ const mapDispatchToProps = ( dispatch, { orderId, siteId } ) => ( { purchaseLabel: () => dispatch( purchaseLabel( orderId, siteId ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( PurchaseButton ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( PurchaseButton ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/index.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/index.js index 7bb8b9c4c9750..63ff5d3b4a7c7 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/index.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/index.js @@ -213,7 +213,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { toggleStep, updateRate }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( RatesStep ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( RatesStep ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/sidebar.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/sidebar.js index 0baa8d826a19f..01de7d2b9a806 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/sidebar.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/sidebar.js @@ -92,7 +92,4 @@ const mapDispatchToProps = dispatch => { ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( Sidebar ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( Sidebar ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-refund-modal.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-refund-modal.js index cecd8b9839bc0..f04b39e6ef624 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-refund-modal.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-refund-modal.js @@ -105,7 +105,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeRefundDialog, confirmRefund }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( RefundDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( RefundDialog ) ); diff --git a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-reprint-modal.js b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-reprint-modal.js index 1d41bc2174b16..bbe5c21d8da88 100644 --- a/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-reprint-modal.js +++ b/client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-reprint-modal.js @@ -101,7 +101,4 @@ const mapDispatchToProps = dispatch => { return bindActionCreators( { closeReprintDialog, confirmReprint, updatePaperSize }, dispatch ); }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ReprintDialog ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ReprintDialog ) ); diff --git a/client/extensions/wp-super-cache/components/advanced/fix-config.jsx b/client/extensions/wp-super-cache/components/advanced/fix-config.jsx index 9c6d1970c4aaa..754c4a4e27fb5 100644 --- a/client/extensions/wp-super-cache/components/advanced/fix-config.jsx +++ b/client/extensions/wp-super-cache/components/advanced/fix-config.jsx @@ -65,7 +65,4 @@ const connectComponent = connect( { restoreSettings } ); -export default flowRight( - connectComponent, - localize -)( FixConfig ); +export default flowRight( connectComponent, localize )( FixConfig ); diff --git a/client/extensions/wp-super-cache/components/advanced/index.jsx b/client/extensions/wp-super-cache/components/advanced/index.jsx index 694d4381d21d0..8290bbf611da9 100644 --- a/client/extensions/wp-super-cache/components/advanced/index.jsx +++ b/client/extensions/wp-super-cache/components/advanced/index.jsx @@ -60,7 +60,4 @@ const getFormSettings = settings => { return pick( settings, [ 'is_cache_enabled', 'is_super_cache_enabled' ] ); }; -export default flowRight( - connectComponent, - WrapSettingsForm( getFormSettings ) -)( AdvancedTab ); +export default flowRight( connectComponent, WrapSettingsForm( getFormSettings ) )( AdvancedTab ); diff --git a/client/extensions/wp-super-cache/components/contents/cache-stats.jsx b/client/extensions/wp-super-cache/components/contents/cache-stats.jsx index d5974fd77ed40..83a18659740a0 100644 --- a/client/extensions/wp-super-cache/components/contents/cache-stats.jsx +++ b/client/extensions/wp-super-cache/components/contents/cache-stats.jsx @@ -115,7 +115,4 @@ const connectComponent = connect( { deleteFile } ); -export default flowRight( - connectComponent, - localize -)( CacheStats ); +export default flowRight( connectComponent, localize )( CacheStats ); diff --git a/client/extensions/wp-super-cache/components/contents/index.jsx b/client/extensions/wp-super-cache/components/contents/index.jsx index 791e4e9ae0aea..317e4eaf657e5 100644 --- a/client/extensions/wp-super-cache/components/contents/index.jsx +++ b/client/extensions/wp-super-cache/components/contents/index.jsx @@ -246,7 +246,4 @@ const getFormSettings = settings => { return pick( settings, [ 'cache_max_time' ] ); }; -export default flowRight( - connectComponent, - WrapSettingsForm( getFormSettings ) -)( ContentsTab ); +export default flowRight( connectComponent, WrapSettingsForm( getFormSettings ) )( ContentsTab ); diff --git a/client/extensions/wp-super-cache/components/easy/index.jsx b/client/extensions/wp-super-cache/components/easy/index.jsx index 65165304c657e..8fed1b9a42a5c 100644 --- a/client/extensions/wp-super-cache/components/easy/index.jsx +++ b/client/extensions/wp-super-cache/components/easy/index.jsx @@ -244,7 +244,4 @@ const getFormSettings = settings => { return pick( settings, [ 'cache_mod_rewrite', 'is_cache_enabled' ] ); }; -export default flowRight( - connectComponent, - WrapSettingsForm( getFormSettings ) -)( EasyTab ); +export default flowRight( connectComponent, WrapSettingsForm( getFormSettings ) )( EasyTab ); diff --git a/client/extensions/wp-super-cache/components/plugins/index.jsx b/client/extensions/wp-super-cache/components/plugins/index.jsx index fda984785a706..382c8e1eade5b 100644 --- a/client/extensions/wp-super-cache/components/plugins/index.jsx +++ b/client/extensions/wp-super-cache/components/plugins/index.jsx @@ -133,7 +133,4 @@ const getFormSettings = settings => { return pick( settings, [ 'plugin_list' ] ); }; -export default flowRight( - connectComponent, - WrapSettingsForm( getFormSettings ) -)( PluginsTab ); +export default flowRight( connectComponent, WrapSettingsForm( getFormSettings ) )( PluginsTab ); diff --git a/client/extensions/wp-super-cache/components/preload/index.jsx b/client/extensions/wp-super-cache/components/preload/index.jsx index 7d20aafcd7ef3..fb5dc1b1f4291 100644 --- a/client/extensions/wp-super-cache/components/preload/index.jsx +++ b/client/extensions/wp-super-cache/components/preload/index.jsx @@ -325,7 +325,4 @@ const getFormSettings = settings => { ] ); }; -export default flowRight( - connectComponent, - WrapSettingsForm( getFormSettings ) -)( PreloadTab ); +export default flowRight( connectComponent, WrapSettingsForm( getFormSettings ) )( PreloadTab ); diff --git a/client/extensions/wp-super-cache/components/wrap-settings-form.jsx b/client/extensions/wp-super-cache/components/wrap-settings-form.jsx index 7f96877d39c9e..f073d3e613bd1 100644 --- a/client/extensions/wp-super-cache/components/wrap-settings-form.jsx +++ b/client/extensions/wp-super-cache/components/wrap-settings-form.jsx @@ -234,12 +234,7 @@ const wrapSettingsForm = getFormSettings => SettingsForm => { } ); - return flowRight( - connectComponent, - localize, - trackForm, - protectForm - )( WrappedSettingsForm ); + return flowRight( connectComponent, localize, trackForm, protectForm )( WrappedSettingsForm ); }; export default wrapSettingsForm; diff --git a/client/extensions/wp-super-cache/state/cache/test/actions.js b/client/extensions/wp-super-cache/state/cache/test/actions.js index feace10e835f2..46848de24f535 100644 --- a/client/extensions/wp-super-cache/state/cache/test/actions.js +++ b/client/extensions/wp-super-cache/state/cache/test/actions.js @@ -117,7 +117,11 @@ describe( 'actions', () => { } ); test( 'should dispatch request success action when request completes', () => { - return deleteCache( siteId, false, true )( spy ).then( () => { + return deleteCache( + siteId, + false, + true + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_DELETE_CACHE_SUCCESS, deleteExpired: true, @@ -127,7 +131,10 @@ describe( 'actions', () => { } ); test( 'should dispatch fail action when request fails', () => { - return deleteCache( failedSiteId, false )( spy ).then( () => { + return deleteCache( + failedSiteId, + false + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_DELETE_CACHE_FAILURE, siteId: failedSiteId, diff --git a/client/extensions/wp-super-cache/state/plugins/test/actions.js b/client/extensions/wp-super-cache/state/plugins/test/actions.js index 80c2ea75334e6..f81e778a47fb7 100644 --- a/client/extensions/wp-super-cache/state/plugins/test/actions.js +++ b/client/extensions/wp-super-cache/state/plugins/test/actions.js @@ -136,13 +136,19 @@ describe( 'actions', () => { } ); test( 'should dispatch receive action when request completes', () => { - return togglePlugin( siteId, plugin )( spy ).then( () => { + return togglePlugin( + siteId, + plugin + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( receivePlugins( siteId, apiResponse.data ) ); } ); } ); test( 'should dispatch save success action when request completes', () => { - return togglePlugin( siteId, plugin )( spy ).then( () => { + return togglePlugin( + siteId, + plugin + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_TOGGLE_PLUGIN_SUCCESS, plugin, @@ -152,7 +158,10 @@ describe( 'actions', () => { } ); test( 'should dispatch fail action when request fails', () => { - return togglePlugin( failedSiteId, plugin )( spy ).then( () => { + return togglePlugin( + failedSiteId, + plugin + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_TOGGLE_PLUGIN_FAILURE, siteId: failedSiteId, diff --git a/client/extensions/wp-super-cache/state/settings/test/actions.js b/client/extensions/wp-super-cache/state/settings/test/actions.js index 4db15d1e27d28..ac51b21d2fc5b 100644 --- a/client/extensions/wp-super-cache/state/settings/test/actions.js +++ b/client/extensions/wp-super-cache/state/settings/test/actions.js @@ -147,13 +147,19 @@ describe( 'actions', () => { } ); test( 'should dispatch receive action when request completes', () => { - return saveSettings( siteId, updatedSettings )( spy ).then( () => { + return saveSettings( + siteId, + updatedSettings + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( receiveSettings( siteId, apiResponse.data ) ); } ); } ); test( 'should dispatch save success action when request completes', () => { - return saveSettings( siteId, updatedSettings )( spy ).then( () => { + return saveSettings( + siteId, + updatedSettings + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_SAVE_SETTINGS_SUCCESS, siteId, @@ -162,7 +168,10 @@ describe( 'actions', () => { } ); test( 'should dispatch fail action when request fails', () => { - return saveSettings( failedSiteId, updatedSettings )( spy ).then( () => { + return saveSettings( + failedSiteId, + updatedSettings + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_SAVE_SETTINGS_FAILURE, siteId: failedSiteId, diff --git a/client/extensions/wp-super-cache/state/stats/test/actions.js b/client/extensions/wp-super-cache/state/stats/test/actions.js index 209718f48b38d..4f27690fd694a 100644 --- a/client/extensions/wp-super-cache/state/stats/test/actions.js +++ b/client/extensions/wp-super-cache/state/stats/test/actions.js @@ -136,7 +136,12 @@ describe( 'actions', () => { } ); test( 'should dispatch request success action when request completes', () => { - return deleteFile( siteId, url, true, false )( spy ).then( () => { + return deleteFile( + siteId, + url, + true, + false + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_DELETE_FILE_SUCCESS, isSupercache: true, @@ -148,7 +153,12 @@ describe( 'actions', () => { } ); test( 'should dispatch fail action when request fails', () => { - return deleteFile( failedSiteId, url, true, false )( spy ).then( () => { + return deleteFile( + failedSiteId, + url, + true, + false + )( spy ).then( () => { expect( spy ).to.have.been.calledWith( { type: WP_SUPER_CACHE_DELETE_FILE_FAILURE, siteId: failedSiteId, diff --git a/client/extensions/zoninator/components/data/query-feed/index.jsx b/client/extensions/zoninator/components/data/query-feed/index.jsx index 88731aab50421..7f39a8dfda14b 100644 --- a/client/extensions/zoninator/components/data/query-feed/index.jsx +++ b/client/extensions/zoninator/components/data/query-feed/index.jsx @@ -38,9 +38,6 @@ class QueryFeed extends PureComponent { } } -const connectComponent = connect( - null, - { requestFeed } -); +const connectComponent = connect( null, { requestFeed } ); export default connectComponent( QueryFeed ); diff --git a/client/extensions/zoninator/components/forms/zone-content-form/index.jsx b/client/extensions/zoninator/components/forms/zone-content-form/index.jsx index 06f04d412a668..238db2da9dfbc 100644 --- a/client/extensions/zoninator/components/forms/zone-content-form/index.jsx +++ b/client/extensions/zoninator/components/forms/zone-content-form/index.jsx @@ -62,7 +62,4 @@ const createReduxForm = reduxForm( { form, } ); -export default flowRight( - localize, - createReduxForm -)( ZoneContentForm ); +export default flowRight( localize, createReduxForm )( ZoneContentForm ); diff --git a/client/extensions/zoninator/components/forms/zone-content-form/post-card.jsx b/client/extensions/zoninator/components/forms/zone-content-form/post-card.jsx index 9faeb6bbc650c..51adc3d1c02c2 100644 --- a/client/extensions/zoninator/components/forms/zone-content-form/post-card.jsx +++ b/client/extensions/zoninator/components/forms/zone-content-form/post-card.jsx @@ -86,7 +86,4 @@ const connectComponent = connect( ( state, { postId, siteId } ) => ( { previewUrl: getPostPreviewUrl( state, siteId, postId ), } ) ); -export default flowRight( - connectComponent, - localize -)( PostCard ); +export default flowRight( connectComponent, localize )( PostCard ); diff --git a/client/extensions/zoninator/components/forms/zone-details-form/index.jsx b/client/extensions/zoninator/components/forms/zone-details-form/index.jsx index d42a6a236f468..f584eeca68b08 100644 --- a/client/extensions/zoninator/components/forms/zone-details-form/index.jsx +++ b/client/extensions/zoninator/components/forms/zone-details-form/index.jsx @@ -81,7 +81,4 @@ const createReduxForm = reduxForm( { }, } ); -export default flowRight( - localize, - createReduxForm -)( ZoneDetailsForm ); +export default flowRight( localize, createReduxForm )( ZoneDetailsForm ); diff --git a/client/extensions/zoninator/components/recent-posts-dropdown/index.jsx b/client/extensions/zoninator/components/recent-posts-dropdown/index.jsx index 7b6353a35c626..9853f5a5058d9 100644 --- a/client/extensions/zoninator/components/recent-posts-dropdown/index.jsx +++ b/client/extensions/zoninator/components/recent-posts-dropdown/index.jsx @@ -74,7 +74,4 @@ const connectComponent = connect( ( state, { exclude } ) => { }; } ); -export default flowRight( - connectComponent, - localize -)( RecentPostsDropdown ); +export default flowRight( connectComponent, localize )( RecentPostsDropdown ); diff --git a/client/extensions/zoninator/components/search-autocomplete/post-suggestions.jsx b/client/extensions/zoninator/components/search-autocomplete/post-suggestions.jsx index c4538a08b81ef..1e11809a58503 100644 --- a/client/extensions/zoninator/components/search-autocomplete/post-suggestions.jsx +++ b/client/extensions/zoninator/components/search-autocomplete/post-suggestions.jsx @@ -61,11 +61,6 @@ const mapStateToProps = ( state, { exclude, search } ) => { }; }; -const connectComponent = connect( - mapStateToProps, - null, - null, - { forwardRef: true } -); +const connectComponent = connect( mapStateToProps, null, null, { forwardRef: true } ); export default connectComponent( PostSuggestions ); diff --git a/client/extensions/zoninator/components/settings/index.jsx b/client/extensions/zoninator/components/settings/index.jsx index 507a6b85ee977..b3faf794bcfe4 100644 --- a/client/extensions/zoninator/components/settings/index.jsx +++ b/client/extensions/zoninator/components/settings/index.jsx @@ -40,7 +40,4 @@ const connectComponent = connect( state => ( { siteId: getSelectedSiteId( state ), } ) ); -export default flowRight( - connectComponent, - localize -)( Settings ); +export default flowRight( connectComponent, localize )( Settings ); diff --git a/client/extensions/zoninator/components/settings/zone-creator/index.jsx b/client/extensions/zoninator/components/settings/zone-creator/index.jsx index 7553ce4c349bc..6e7899f5e5a71 100644 --- a/client/extensions/zoninator/components/settings/zone-creator/index.jsx +++ b/client/extensions/zoninator/components/settings/zone-creator/index.jsx @@ -58,7 +58,4 @@ const connectComponent = connect( { addZone } ); -export default flowRight( - connectComponent, - localize -)( ZoneCreator ); +export default flowRight( connectComponent, localize )( ZoneCreator ); diff --git a/client/extensions/zoninator/components/settings/zone/index.jsx b/client/extensions/zoninator/components/settings/zone/index.jsx index e546e6c321566..7df5ae86c7b6a 100644 --- a/client/extensions/zoninator/components/settings/zone/index.jsx +++ b/client/extensions/zoninator/components/settings/zone/index.jsx @@ -170,7 +170,4 @@ const connectComponent = connect( { deleteZone, saveZone, saveFeed } ); -export default flowRight( - connectComponent, - localize -)( Zone ); +export default flowRight( connectComponent, localize )( Zone ); diff --git a/client/extensions/zoninator/components/settings/zone/zone-lock-warning-notice.jsx b/client/extensions/zoninator/components/settings/zone/zone-lock-warning-notice.jsx index c84af77248d86..3708a3fa6b6e8 100644 --- a/client/extensions/zoninator/components/settings/zone/zone-lock-warning-notice.jsx +++ b/client/extensions/zoninator/components/settings/zone/zone-lock-warning-notice.jsx @@ -67,7 +67,4 @@ const connectComponent = connect( { requestFeed, requestLock, requestZones, resetLock } ); -export default flowRight( - connectComponent, - localize -)( ZoneLockWarningNotice ); +export default flowRight( connectComponent, localize )( ZoneLockWarningNotice ); diff --git a/client/extensions/zoninator/components/settings/zones-dashboard/index.jsx b/client/extensions/zoninator/components/settings/zones-dashboard/index.jsx index 1fd0b986618bc..0eb4e15bfe416 100644 --- a/client/extensions/zoninator/components/settings/zones-dashboard/index.jsx +++ b/client/extensions/zoninator/components/settings/zones-dashboard/index.jsx @@ -60,7 +60,4 @@ const connectComponent = connect( state => { }; } ); -export default flowRight( - connectComponent, - localize -)( ZonesDashboard ); +export default flowRight( connectComponent, localize )( ZonesDashboard ); diff --git a/client/extensions/zoninator/state/data-layer/feeds/test/index.js b/client/extensions/zoninator/state/data-layer/feeds/test/index.js index 3a8ff9087c2dc..97f9960a491a4 100644 --- a/client/extensions/zoninator/state/data-layer/feeds/test/index.js +++ b/client/extensions/zoninator/state/data-layer/feeds/test/index.js @@ -29,7 +29,10 @@ const dummyAction = { form: 'test-form', siteId: 123, zoneId: 456, - posts: [ { ID: 1, title: 'A test post' }, { ID: 2, title: 'Another test post' } ], + posts: [ + { ID: 1, title: 'A test post' }, + { ID: 2, title: 'Another test post' }, + ], }; const apiResponse = [ diff --git a/client/extensions/zoninator/state/feeds/test/actions.js b/client/extensions/zoninator/state/feeds/test/actions.js index ff61ef609c6c7..dac02762099f7 100644 --- a/client/extensions/zoninator/state/feeds/test/actions.js +++ b/client/extensions/zoninator/state/feeds/test/actions.js @@ -20,7 +20,10 @@ describe( 'actions', () => { const siteId = 1234; const zoneId = 5678; - const posts = [ { ID: 1, title: 'A test post' }, { ID: 2, title: 'Another test post' } ]; + const posts = [ + { ID: 1, title: 'A test post' }, + { ID: 2, title: 'Another test post' }, + ]; describe( 'requestFeed()', () => { test( 'should return an action object', () => { diff --git a/client/gutenberg/editor/calypsoify-iframe.tsx b/client/gutenberg/editor/calypsoify-iframe.tsx index 8394287c83d52..93fc0f870de68 100644 --- a/client/gutenberg/editor/calypsoify-iframe.tsx +++ b/client/gutenberg/editor/calypsoify-iframe.tsx @@ -680,7 +680,4 @@ const mapDispatchToProps = { type ConnectedProps = ReturnType< typeof mapStateToProps > & typeof mapDispatchToProps; -export default connect( - mapStateToProps, - mapDispatchToProps -)( protectForm( CalypsoifyIframe ) ); +export default connect( mapStateToProps, mapDispatchToProps )( protectForm( CalypsoifyIframe ) ); diff --git a/client/jetpack-connect/authorize.js b/client/jetpack-connect/authorize.js index 8ffe669f1cd89..2e274673dfb30 100644 --- a/client/jetpack-connect/authorize.js +++ b/client/jetpack-connect/authorize.js @@ -626,7 +626,7 @@ export class JetpackAuthorize extends Component { const { blogname, redirectAfterAuth } = this.props.authQuery; const backToWpAdminLink = ( - {' '} + { ' ' } { translate( 'Return to %(sitename)s', { args: { sitename: decodeEntities( blogname ) }, } ) } diff --git a/client/jetpack-connect/disclaimer.jsx b/client/jetpack-connect/disclaimer.jsx index 54d66b82b18aa..5c8b4be46e2e2 100644 --- a/client/jetpack-connect/disclaimer.jsx +++ b/client/jetpack-connect/disclaimer.jsx @@ -52,9 +52,6 @@ class JetpackConnectDisclaimer extends PureComponent { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( JetpackConnectDisclaimer ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( JetpackConnectDisclaimer ) ); diff --git a/client/jetpack-connect/help-button.jsx b/client/jetpack-connect/help-button.jsx index 2a993c64b3558..025e579f0557b 100644 --- a/client/jetpack-connect/help-button.jsx +++ b/client/jetpack-connect/help-button.jsx @@ -29,7 +29,7 @@ export default function JetpackConnectHelpButton( { label } ) { rel="noopener noreferrer" onClick={ recordClick } > - {' '} + { ' ' } { label || translate( 'Get help setting up Jetpack' ) } ); diff --git a/client/jetpack-connect/jetpack-new-site/index.jsx b/client/jetpack-connect/jetpack-new-site/index.jsx index 432bf5774eb55..b15fd85fb973e 100644 --- a/client/jetpack-connect/jetpack-new-site/index.jsx +++ b/client/jetpack-connect/jetpack-new-site/index.jsx @@ -87,7 +87,7 @@ class JetpackNewSite extends Component {
{ this.props.translate( 'Create a new site on WordPress.com or add your existing self-hosted WordPress site with Jetpack.' - ) }{' '} + ) }{ ' ' }
@@ -159,12 +159,9 @@ class JetpackNewSite extends Component { } } -const connectComponent = connect( - null, - { - recordTracksEvent, - } -); +const connectComponent = connect( null, { + recordTracksEvent, +} ); export default flowRight( connectComponent, diff --git a/client/jetpack-connect/no-direct-access-error.js b/client/jetpack-connect/no-direct-access-error.js index 168ba46d5e91b..d9035963455dc 100644 --- a/client/jetpack-connect/no-direct-access-error.js +++ b/client/jetpack-connect/no-direct-access-error.js @@ -44,7 +44,4 @@ class NoDirectAccessError extends PureComponent { } } -export default connect( - null, - { recordTracksEvent } -)( localize( NoDirectAccessError ) ); +export default connect( null, { recordTracksEvent } )( localize( NoDirectAccessError ) ); diff --git a/client/jetpack-connect/plans-grid.jsx b/client/jetpack-connect/plans-grid.jsx index f2994d41bb32e..162de480a5df2 100644 --- a/client/jetpack-connect/plans-grid.jsx +++ b/client/jetpack-connect/plans-grid.jsx @@ -81,9 +81,6 @@ class JetpackPlansGrid extends Component { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( JetpackPlansGrid ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( JetpackPlansGrid ) ); diff --git a/client/jetpack-connect/plans.jsx b/client/jetpack-connect/plans.jsx index abae981428f39..c291ba5dc2649 100644 --- a/client/jetpack-connect/plans.jsx +++ b/client/jetpack-connect/plans.jsx @@ -265,8 +265,4 @@ const connectComponent = connect( } ); -export default flowRight( - connectComponent, - localize, - withTrackingTool( 'HotJar' ) -)( Plans ); +export default flowRight( connectComponent, localize, withTrackingTool( 'HotJar' ) )( Plans ); diff --git a/client/jetpack-connect/signup.js b/client/jetpack-connect/signup.js index d7908d113609d..6fb80d252ff60 100644 --- a/client/jetpack-connect/signup.js +++ b/client/jetpack-connect/signup.js @@ -243,16 +243,13 @@ export class JetpackSignup extends Component { } } -const connectComponent = connect( - null, - { - createAccount: createAccountAction, - createSocialAccount: createSocialAccountAction, - errorNotice: errorNoticeAction, - recordTracksEvent: recordTracksEventAction, - warningNotice: warningNoticeAction, - } -); +const connectComponent = connect( null, { + createAccount: createAccountAction, + createSocialAccount: createSocialAccountAction, + errorNotice: errorNoticeAction, + recordTracksEvent: recordTracksEventAction, + warningNotice: warningNoticeAction, +} ); export default flowRight( connectComponent, diff --git a/client/jetpack-connect/skip-button.js b/client/jetpack-connect/skip-button.js index 6d389af6a835c..251e58c368c31 100644 --- a/client/jetpack-connect/skip-button.js +++ b/client/jetpack-connect/skip-button.js @@ -53,9 +53,6 @@ class SkipButton extends PureComponent { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( SkipButton ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( SkipButton ) ); diff --git a/client/jetpack-connect/user-type/form.jsx b/client/jetpack-connect/user-type/form.jsx index 565f0e0baf767..4518a88925199 100644 --- a/client/jetpack-connect/user-type/form.jsx +++ b/client/jetpack-connect/user-type/form.jsx @@ -74,9 +74,6 @@ class UserTypeForm extends Component { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( UserTypeForm ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( UserTypeForm ) ); diff --git a/client/languages.js b/client/languages.js index c1bcfc1957448..5b77dbcfd58f1 100644 --- a/client/languages.js +++ b/client/languages.js @@ -659,12 +659,12 @@ export const languages = [ territories: [ '151' ], }, { - "value": 486, - "langSlug": "skr", - "name": "سرائیکی", - "rtl": true, - "wpLocale": "skr", - "territories": [ "034" ] + value: 486, + langSlug: 'skr', + name: 'سرائیکی', + rtl: true, + wpLocale: 'skr', + territories: [ '034' ], }, { value: 65, diff --git a/client/layout/guided-tours/config-elements/site-link.js b/client/layout/guided-tours/config-elements/site-link.js index 0f328448af030..02e80e8e00ab9 100644 --- a/client/layout/guided-tours/config-elements/site-link.js +++ b/client/layout/guided-tours/config-elements/site-link.js @@ -72,7 +72,4 @@ const mapStateToProps = state => { const mapDispatchToProps = null; -export default connect( - mapStateToProps, - mapDispatchToProps -)( SiteLink ); +export default connect( mapStateToProps, mapDispatchToProps )( SiteLink ); diff --git a/client/layout/masterbar/crowdsignal.jsx b/client/layout/masterbar/crowdsignal.jsx index 46635f56fdbfb..37bc475b1d94f 100644 --- a/client/layout/masterbar/crowdsignal.jsx +++ b/client/layout/masterbar/crowdsignal.jsx @@ -22,12 +22,14 @@ class CrowdsignalOauthMasterbar extends Component { const crowdsignalFonts = [ new FontFace( 'Recoleta', 'url(https://s1.wp.com/i/fonts/recoleta/400.woff2)' ), - new FontFace( 'Recoleta', 'url(https://s1.wp.com/i/fonts/recoleta/700.woff2)', { weight: 700} ), + new FontFace( 'Recoleta', 'url(https://s1.wp.com/i/fonts/recoleta/700.woff2)', { + weight: 700, + } ), ]; if ( ! document.fonts.check( '12px Recoleta' ) ) { - map( crowdsignalFonts, ( font ) => { - font.load().then( ( loadedFont ) => document.fonts.add( loadedFont ) ); + map( crowdsignalFonts, font => { + font.load().then( loadedFont => document.fonts.add( loadedFont ) ); } ); } } diff --git a/client/layout/masterbar/notifications.jsx b/client/layout/masterbar/notifications.jsx index d249928ba7856..76e9cccb96c2c 100644 --- a/client/layout/masterbar/notifications.jsx +++ b/client/layout/masterbar/notifications.jsx @@ -158,7 +158,4 @@ const mapDispatchToProps = { recordOpening: partial( recordTracksEvent, 'calypso_notification_open' ), }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( MasterbarItemNotifications ); +export default connect( mapStateToProps, mapDispatchToProps )( MasterbarItemNotifications ); diff --git a/client/layout/nps-survey-notice/index.jsx b/client/layout/nps-survey-notice/index.jsx index cbe0550720c5b..b3cd0b4fa77e8 100644 --- a/client/layout/nps-survey-notice/index.jsx +++ b/client/layout/nps-survey-notice/index.jsx @@ -140,13 +140,10 @@ const mapStateToProps = state => { }; }; -export default connect( - mapStateToProps, - { - setNpsSurveyDialogShowing, - submitNpsSurveyWithNoScore, - setupNpsSurveyDevTrigger, - setupNpsSurveyEligibility, - markNpsSurveyShownThisSession, - } -)( NpsSurveyNotice ); +export default connect( mapStateToProps, { + setNpsSurveyDialogShowing, + submitNpsSurveyWithNoScore, + setupNpsSurveyDevTrigger, + setupNpsSurveyEligibility, + markNpsSurveyShownThisSession, +} )( NpsSurveyNotice ); diff --git a/client/lib/analytics/page-view-tracker/index.jsx b/client/lib/analytics/page-view-tracker/index.jsx index 2364b8e10125f..eb6adf586ae9b 100644 --- a/client/lib/analytics/page-view-tracker/index.jsx +++ b/client/lib/analytics/page-view-tracker/index.jsx @@ -114,7 +114,4 @@ const mapDispatchToProps = { recorder: withEnhancers( recordPageView, [ enhanceWithSiteType ] ), }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( PageViewTracker ); +export default connect( mapStateToProps, mapDispatchToProps )( PageViewTracker ); diff --git a/client/lib/analytics/track-component-view/index.jsx b/client/lib/analytics/track-component-view/index.jsx index 75f0bb814382d..853ad197ff3be 100644 --- a/client/lib/analytics/track-component-view/index.jsx +++ b/client/lib/analytics/track-component-view/index.jsx @@ -52,7 +52,4 @@ class TrackComponentView extends Component { } } -export default connect( - null, - { bumpStat, recordTracksEvent } -)( TrackComponentView ); +export default connect( null, { bumpStat, recordTracksEvent } )( TrackComponentView ); diff --git a/client/lib/analytics/with-tracking-tool/index.jsx b/client/lib/analytics/with-tracking-tool/index.jsx index 9bfb71a5d77b2..9b05fd2ac79c0 100644 --- a/client/lib/analytics/with-tracking-tool/index.jsx +++ b/client/lib/analytics/with-tracking-tool/index.jsx @@ -24,10 +24,7 @@ export default trackingTool => EnhancedComponent => { } } - return connect( - null, - { - loadTrackingTool, - } - )( WithTrackingTool ); + return connect( null, { + loadTrackingTool, + } )( WithTrackingTool ); }; diff --git a/client/lib/cart/store/cart-synchronizer.js b/client/lib/cart/store/cart-synchronizer.js index bb7b3378bec62..2624eb61dc484 100644 --- a/client/lib/cart/store/cart-synchronizer.js +++ b/client/lib/cart/store/cart-synchronizer.js @@ -118,10 +118,7 @@ CartSynchronizer.prototype.resume = function() { CartSynchronizer.prototype._enqueueChange = function( changeFunction ) { if ( this._queuedChanges ) { - this._queuedChanges = flowRight( - changeFunction, - this._queuedChanges - ); + this._queuedChanges = flowRight( changeFunction, this._queuedChanges ); } else { this._queuedChanges = changeFunction; } diff --git a/client/lib/create-selector/test/index.js b/client/lib/create-selector/test/index.js index 3c1306a7aa214..476d7db99f890 100644 --- a/client/lib/create-selector/test/index.js +++ b/client/lib/create-selector/test/index.js @@ -23,10 +23,7 @@ describe( 'index', () => { } ); beforeAll( () => { - getSitePosts = createSelector( - selector, - state => state.posts - ); + getSitePosts = createSelector( selector, state => state.posts ); } ); beforeEach( () => { @@ -169,10 +166,7 @@ describe( 'index', () => { } ); test( 'should accept an array of dependent state values', () => { - const getSitePostsWithArrayDependants = createSelector( - selector, - state => [ state.posts ] - ); + const getSitePostsWithArrayDependants = createSelector( selector, state => [ state.posts ] ); const state = { posts: { '3d097cb7c5473c169bba0eb8e3c6cb64': { @@ -192,10 +186,7 @@ describe( 'index', () => { test( 'should accept an array of dependent selectors', () => { const getPosts = state => state.posts; - const getSitePostsWithArrayDependants = createSelector( - selector, - [ getPosts ] - ); + const getSitePostsWithArrayDependants = createSelector( selector, [ getPosts ] ); const state = { posts: { '3d097cb7c5473c169bba0eb8e3c6cb64': { @@ -288,10 +279,7 @@ describe( 'index', () => { test( 'should call dependant state getter with arguments', () => { const getDeps = sinon.spy(); - const memoizedSelector = createSelector( - () => null, - getDeps - ); + const memoizedSelector = createSelector( () => null, getDeps ); const state = {}; memoizedSelector( state, 1, 2, 3 ); @@ -302,10 +290,7 @@ describe( 'index', () => { test( 'should handle an array of selectors instead of a dependant state getter', () => { const getPosts = sinon.spy(); const getQuuxs = sinon.spy(); - const memoizedSelector = createSelector( - () => null, - [ getPosts, getQuuxs ] - ); + const memoizedSelector = createSelector( () => null, [ getPosts, getQuuxs ] ); const state = {}; memoizedSelector( state, 1, 2, 3 ); diff --git a/client/lib/form-state/store/sync-initialize.js b/client/lib/form-state/store/sync-initialize.js index 89b675e891b94..45f6eb62d22be 100644 --- a/client/lib/form-state/store/sync-initialize.js +++ b/client/lib/form-state/store/sync-initialize.js @@ -26,7 +26,10 @@ function syncInitialize( { fieldNames } ) { case 'INITIALIZE': next = createNullFieldValues( fieldNames ); next = createInitialFormState( next ); - next = initializeFields( next, mapValues( fieldNames, () => '' ) ); + next = initializeFields( + next, + mapValues( fieldNames, () => '' ) + ); break; default: diff --git a/client/lib/gsuite/index.js b/client/lib/gsuite/index.js index 6aa60d582b3dc..4c4d958c6442d 100644 --- a/client/lib/gsuite/index.js +++ b/client/lib/gsuite/index.js @@ -90,7 +90,10 @@ function getEligibleGSuiteDomain( selectedDomainName, domains ) { } // Orders domains with the primary domain in first position, if any - const supportedDomains = sortBy( getGSuiteSupportedDomains( domains ), ( domain ) => ! domain.isPrimary ); + const supportedDomains = sortBy( + getGSuiteSupportedDomains( domains ), + domain => ! domain.isPrimary + ); return get( supportedDomains, '[0].name', '' ); } @@ -107,7 +110,8 @@ function getGSuiteSupportedDomains( domains ) { return false; } - const isHostedOnWpcom = isRegisteredDomain( domain ) && ( domain.hasWpcomNameservers || hasGSuiteWithUs( domain ) ); + const isHostedOnWpcom = + isRegisteredDomain( domain ) && ( domain.hasWpcomNameservers || hasGSuiteWithUs( domain ) ); if ( ! isHostedOnWpcom && ! isMappedDomainWithWpcomNameservers( domain ) ) { return false; diff --git a/client/lib/gsuite/test/index.js b/client/lib/gsuite/test/index.js index 8e3786a410495..d983e22228a0f 100644 --- a/client/lib/gsuite/test/index.js +++ b/client/lib/gsuite/test/index.js @@ -78,11 +78,13 @@ describe( 'index', () => { name: 'primary-domain.blog', type: 'REGISTERED', isPrimary: true, - } + }, ]; test( 'Returns selected domain if selected domain is valid', () => { - expect( getEligibleGSuiteDomain( 'selected-valid-domain.blog', domains ) ).toEqual( 'selected-valid-domain.blog' ); + expect( getEligibleGSuiteDomain( 'selected-valid-domain.blog', domains ) ).toEqual( + 'selected-valid-domain.blog' + ); } ); test( 'Returns primary domain if no selected domain', () => { @@ -92,7 +94,9 @@ describe( 'index', () => { test( 'Returns first non-primary domain if no selected domain and no primary domain in domains', () => { const domainsWithoutPrimaryDomain = domains.slice( 0, -1 ); - expect( getEligibleGSuiteDomain( '', domainsWithoutPrimaryDomain ) ).toEqual( 'mapped-domain-with-wpcom-nameservers.blog' ); + expect( getEligibleGSuiteDomain( '', domainsWithoutPrimaryDomain ) ).toEqual( + 'mapped-domain-with-wpcom-nameservers.blog' + ); } ); test( 'Returns empty string if no selected domain and no valid domain in domains', () => { diff --git a/client/lib/keyboard-shortcuts/index.js b/client/lib/keyboard-shortcuts/index.js index b9cfa18f20d69..9583d5cbb5f30 100644 --- a/client/lib/keyboard-shortcuts/index.js +++ b/client/lib/keyboard-shortcuts/index.js @@ -108,10 +108,7 @@ KeyboardShortcuts.prototype.bindShortcut = function( eventName, keys, type, chec combo = combo.join( '+' ); keymaster( combo, ( event, handler ) => { // if the notifications panel is open, do not handle any presses besides `n` to toggle the panel - if ( - this.isNotificationsOpen && - ( this._getKey( event ) !== 'n' && event.keyCode !== 27 ) - ) { + if ( this.isNotificationsOpen && this._getKey( event ) !== 'n' && event.keyCode !== 27 ) { return; } diff --git a/client/lib/keyboard-shortcuts/key-bindings.js b/client/lib/keyboard-shortcuts/key-bindings.js index 7083e290ee779..a237094286ae9 100644 --- a/client/lib/keyboard-shortcuts/key-bindings.js +++ b/client/lib/keyboard-shortcuts/key-bindings.js @@ -50,7 +50,10 @@ const KEY_BINDINGS = { siteNavigation: [ { eventName: 'open-keyboard-shortcuts-menu', - keys: [ [ 'shift', '/' ], [ 'shift', ',' ] ], + keys: [ + [ 'shift', '/' ], + [ 'shift', ',' ], + ], // On Win/Webkit `?` is incorrectly identified as upside-down // question mark. https://bugs.webkit.org/show_bug.cgi?id=19906 checkKeys: [ '?', '\u00BF', '\u00BC' ], diff --git a/client/lib/media/test/utils.js b/client/lib/media/test/utils.js index debd1569acede..9b01283bf78f1 100644 --- a/client/lib/media/test/utils.js +++ b/client/lib/media/test/utils.js @@ -257,7 +257,10 @@ describe( 'MediaUtils', () => { describe( '#filterItemsByMimePrefix()', () => { test( 'should return an array filtered to the matching mime prefix', () => { - const items = [ { ID: 100, mime_type: 'image/jpg' }, { ID: 200, mime_type: 'video/mp4' } ]; + const items = [ + { ID: 100, mime_type: 'image/jpg' }, + { ID: 200, mime_type: 'video/mp4' }, + ]; expect( MediaUtils.filterItemsByMimePrefix( items, 'image' ) ).to.eql( [ items[ 0 ] ] ); } ); diff --git a/client/lib/notifications/note-block-parser.js b/client/lib/notifications/note-block-parser.js index 0925270a4ba19..26c8fa1ebf875 100644 --- a/client/lib/notifications/note-block-parser.js +++ b/client/lib/notifications/note-block-parser.js @@ -62,7 +62,7 @@ const encloses = ( { indices: [ innerStart, innerEnd ] } ) => * @returns {Boolean} whether the "outer" range encloses the "inner" range */ ( { indices: [ outerStart, outerEnd ] = [ 0, 0 ] } ) => - innerStart !== 0 && innerEnd !== 0 && ( outerStart <= innerStart && outerEnd >= innerEnd ); + innerStart !== 0 && innerEnd !== 0 && outerStart <= innerStart && outerEnd >= innerEnd; /** * Builds a tree of ranges diff --git a/client/lib/plans/test/plan-lookups.js b/client/lib/plans/test/plan-lookups.js index 0a53d70b5cac2..02ff7ae5415bb 100644 --- a/client/lib/plans/test/plan-lookups.js +++ b/client/lib/plans/test/plan-lookups.js @@ -441,12 +441,12 @@ describe( 'findSimilarPlansKeys', () => { expect( findSimilarPlansKeys( PLAN_BLOGGER_2_YEARS, { term: TERM_ANNUALLY } ) ).to.deep.equal( [ PLAN_BLOGGER, ] ); - expect( findSimilarPlansKeys( PLAN_PERSONAL_2_YEARS, { term: TERM_ANNUALLY } ) ).to.deep.equal( - [ PLAN_PERSONAL ] - ); - expect( findSimilarPlansKeys( PLAN_BUSINESS_2_YEARS, { term: TERM_ANNUALLY } ) ).to.deep.equal( - [ PLAN_BUSINESS ] - ); + expect( + findSimilarPlansKeys( PLAN_PERSONAL_2_YEARS, { term: TERM_ANNUALLY } ) + ).to.deep.equal( [ PLAN_PERSONAL ] ); + expect( + findSimilarPlansKeys( PLAN_BUSINESS_2_YEARS, { term: TERM_ANNUALLY } ) + ).to.deep.equal( [ PLAN_BUSINESS ] ); expect( findSimilarPlansKeys( PLAN_JETPACK_PERSONAL, { term: TERM_MONTHLY } ) ).to.deep.equal( [ PLAN_JETPACK_PERSONAL_MONTHLY, diff --git a/client/lib/post-normalizer/rule-wait-for-images-to-load.js b/client/lib/post-normalizer/rule-wait-for-images-to-load.js index 57f0d43f3c7e8..e7c14c0df7089 100644 --- a/client/lib/post-normalizer/rule-wait-for-images-to-load.js +++ b/client/lib/post-normalizer/rule-wait-for-images-to-load.js @@ -45,10 +45,7 @@ function promiseForImage( image ) { } ); } -const promiseForURL = flow( - imageForURL, - promiseForImage -); +const promiseForURL = flow( imageForURL, promiseForImage ); export default function waitForImagesToLoad( post ) { return new Promise( resolve => { diff --git a/client/lib/preferences-helper/array-preference.js b/client/lib/preferences-helper/array-preference.js index 5c6d29a2bb2fe..e9e18b455882c 100644 --- a/client/lib/preferences-helper/array-preference.js +++ b/client/lib/preferences-helper/array-preference.js @@ -27,7 +27,4 @@ class ArrayPreference extends Component { } } -export default connect( - null, - null -)( localize( ArrayPreference ) ); +export default connect( null, null )( localize( ArrayPreference ) ); diff --git a/client/lib/preferences-helper/boolean-preference.js b/client/lib/preferences-helper/boolean-preference.js index 6857f8de0ae11..9cfb938b1a2e7 100644 --- a/client/lib/preferences-helper/boolean-preference.js +++ b/client/lib/preferences-helper/boolean-preference.js @@ -25,7 +25,4 @@ class BooleanPreference extends Component { } } -export default connect( - null, - null -)( localize( BooleanPreference ) ); +export default connect( null, null )( localize( BooleanPreference ) ); diff --git a/client/lib/preferences-helper/number-preference.js b/client/lib/preferences-helper/number-preference.js index 4ac21d096365d..9285bd41feec3 100644 --- a/client/lib/preferences-helper/number-preference.js +++ b/client/lib/preferences-helper/number-preference.js @@ -25,7 +25,4 @@ class NumberPreference extends Component { } } -export default connect( - null, - null -)( localize( NumberPreference ) ); +export default connect( null, null )( localize( NumberPreference ) ); diff --git a/client/lib/preferences-helper/object-preference.js b/client/lib/preferences-helper/object-preference.js index 9944982729312..195fd4d30f367 100644 --- a/client/lib/preferences-helper/object-preference.js +++ b/client/lib/preferences-helper/object-preference.js @@ -27,7 +27,4 @@ class ObjectPreference extends Component { } } -export default connect( - null, - null -)( localize( ObjectPreference ) ); +export default connect( null, null )( localize( ObjectPreference ) ); diff --git a/client/lib/preferences-helper/preference.js b/client/lib/preferences-helper/preference.js index 0932f76dca73c..050f9eeab2d44 100644 --- a/client/lib/preferences-helper/preference.js +++ b/client/lib/preferences-helper/preference.js @@ -58,9 +58,6 @@ class Preference extends Component { } } -export default connect( - null, - { - unsetPreference: savePreference, - } -)( localize( Preference ) ); +export default connect( null, { + unsetPreference: savePreference, +} )( localize( Preference ) ); diff --git a/client/lib/preferences-helper/string-preference.js b/client/lib/preferences-helper/string-preference.js index 88882dba81fe9..79841210ec4a4 100644 --- a/client/lib/preferences-helper/string-preference.js +++ b/client/lib/preferences-helper/string-preference.js @@ -25,7 +25,4 @@ class StringPreference extends Component { } } -export default connect( - null, - null -)( localize( StringPreference ) ); +export default connect( null, null )( localize( StringPreference ) ); diff --git a/client/lib/wpcom-undocumented/lib/undocumented.js b/client/lib/wpcom-undocumented/lib/undocumented.js index 3db5dca03fdb4..31a910f624e52 100644 --- a/client/lib/wpcom-undocumented/lib/undocumented.js +++ b/client/lib/wpcom-undocumented/lib/undocumented.js @@ -1950,7 +1950,10 @@ Undocumented.prototype.importWithSiteImporter = function( return this.wpcom.req.post( { path: `/sites/${ siteId }/site-importer/import-site?${ stringify( params ) }`, apiNamespace: 'wpcom/v2', - formData: [ [ 'import_status', JSON.stringify( importerStatus ) ], [ 'site_url', targetUrl ] ], + formData: [ + [ 'import_status', JSON.stringify( importerStatus ) ], + [ 'site_url', targetUrl ], + ], } ); }; diff --git a/client/login/magic-login/emailed-login-link-expired.jsx b/client/login/magic-login/emailed-login-link-expired.jsx index ebc3e6faf06dd..9256328d2aa02 100644 --- a/client/login/magic-login/emailed-login-link-expired.jsx +++ b/client/login/magic-login/emailed-login-link-expired.jsx @@ -83,7 +83,4 @@ const mapDispatchToProps = { recordPageView: withEnhancers( recordPageView, [ enhanceWithSiteType ] ), }; -export default connect( - null, - mapDispatchToProps -)( localize( EmailedLoginLinkExpired ) ); +export default connect( null, mapDispatchToProps )( localize( EmailedLoginLinkExpired ) ); diff --git a/client/login/magic-login/emailed-login-link-successfully.jsx b/client/login/magic-login/emailed-login-link-successfully.jsx index 9aaad72d0c6d4..3aa2504184aa2 100644 --- a/client/login/magic-login/emailed-login-link-successfully.jsx +++ b/client/login/magic-login/emailed-login-link-successfully.jsx @@ -99,7 +99,4 @@ const mapDispatch = { recordPageView: withEnhancers( recordPageView, [ enhanceWithSiteType ] ), }; -export default connect( - mapState, - mapDispatch -)( localize( EmailedLoginLinkSuccessfully ) ); +export default connect( mapState, mapDispatch )( localize( EmailedLoginLinkSuccessfully ) ); diff --git a/client/login/magic-login/handle-emailed-link-form.jsx b/client/login/magic-login/handle-emailed-link-form.jsx index 8104e657e95be..c3b757cb50175 100644 --- a/client/login/magic-login/handle-emailed-link-form.jsx +++ b/client/login/magic-login/handle-emailed-link-form.jsx @@ -236,7 +236,4 @@ const mapDispatch = { showMagicLoginLinkExpiredPage, }; -export default connect( - mapState, - mapDispatch -)( localize( HandleEmailedLinkForm ) ); +export default connect( mapState, mapDispatch )( localize( HandleEmailedLinkForm ) ); diff --git a/client/login/magic-login/index.jsx b/client/login/magic-login/index.jsx index e6bc492df770b..adc1cc7aa36e7 100644 --- a/client/login/magic-login/index.jsx +++ b/client/login/magic-login/index.jsx @@ -139,7 +139,4 @@ const mapDispatch = { recordTracksEvent: withEnhancers( recordTracksEvent, [ enhanceWithSiteType ] ), }; -export default connect( - mapState, - mapDispatch -)( localize( MagicLogin ) ); +export default connect( mapState, mapDispatch )( localize( MagicLogin ) ); diff --git a/client/login/magic-login/request-login-email-form.jsx b/client/login/magic-login/request-login-email-form.jsx index 7ddeedbad7db5..76203d86d3034 100644 --- a/client/login/magic-login/request-login-email-form.jsx +++ b/client/login/magic-login/request-login-email-form.jsx @@ -207,7 +207,4 @@ const mapDispatch = { recordTracksEvent, }; -export default connect( - mapState, - mapDispatch -)( localize( RequestLoginEmailForm ) ); +export default connect( mapState, mapDispatch )( localize( RequestLoginEmailForm ) ); diff --git a/client/me/account-password/index.jsx b/client/me/account-password/index.jsx index 48c3583b439a4..b52233f9a2aa8 100644 --- a/client/me/account-password/index.jsx +++ b/client/me/account-password/index.jsx @@ -140,7 +140,9 @@ const AccountPassword = createReactClass( { const failure = head( this.props.accountPasswordData.getValidationFailures() ); if ( this.props.accountPasswordData.passwordValidationSuccess() ) { - return ; + return ( + + ); } else if ( ! isEmpty( failure ) ) { return ; } @@ -201,9 +203,6 @@ const AccountPassword = createReactClass( { } ); export default compose( - connect( - null, - { errorNotice, recordGoogleEvent } - ), + connect( null, { errorNotice, recordGoogleEvent } ), localize )( AccountPassword ); diff --git a/client/me/account/main.jsx b/client/me/account/main.jsx index 2e593ee5fee5c..a467b463f83fd 100644 --- a/client/me/account/main.jsx +++ b/client/me/account/main.jsx @@ -255,7 +255,7 @@ const Account = createReactClass( { return ( - {' '} + { ' ' } { translate( 'Thanks to {{a}}all our community members who helped translate to {{language/}}{{/a}}!', { diff --git a/client/me/application-password-item/index.jsx b/client/me/application-password-item/index.jsx index 8f5cabd7b988b..98684e24ac5af 100644 --- a/client/me/application-password-item/index.jsx +++ b/client/me/application-password-item/index.jsx @@ -54,11 +54,8 @@ class ApplicationPasswordsItem extends React.Component { } } -export default connect( - null, - { - deleteApplicationPassword, - errorNotice, - recordGoogleEvent, - } -)( localize( ApplicationPasswordsItem ) ); +export default connect( null, { + deleteApplicationPassword, + errorNotice, + recordGoogleEvent, +} )( localize( ApplicationPasswordsItem ) ); diff --git a/client/me/billing-history/receipt.jsx b/client/me/billing-history/receipt.jsx index f068eb09991dd..490834e6570a8 100644 --- a/client/me/billing-history/receipt.jsx +++ b/client/me/billing-history/receipt.jsx @@ -244,7 +244,7 @@ class BillingReceipt extends React.Component { alt={ transaction.service } />

- {' '} + { ' ' } { translate( '{{link}}%(service)s{{/link}} {{small}}by %(organization)s{{/small}}', { components: { link: serviceLink, diff --git a/client/me/concierge/book/confirmation-step.js b/client/me/concierge/book/confirmation-step.js index d7379b1930e4b..de6160ffaa3fd 100644 --- a/client/me/concierge/book/confirmation-step.js +++ b/client/me/concierge/book/confirmation-step.js @@ -39,7 +39,4 @@ class ConfirmationStep extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( ConfirmationStep ) ); +export default connect( null, { recordTracksEvent } )( localize( ConfirmationStep ) ); diff --git a/client/me/concierge/reschedule/confirmation-step.js b/client/me/concierge/reschedule/confirmation-step.js index c260c9488cfc3..fbc5c77967cde 100644 --- a/client/me/concierge/reschedule/confirmation-step.js +++ b/client/me/concierge/reschedule/confirmation-step.js @@ -45,7 +45,4 @@ class ConfirmationStep extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( ConfirmationStep ) ); +export default connect( null, { recordTracksEvent } )( localize( ConfirmationStep ) ); diff --git a/client/me/concierge/shared/no-available-times.js b/client/me/concierge/shared/no-available-times.js index 8afc7fa5098b3..84c1cec8a5220 100644 --- a/client/me/concierge/shared/no-available-times.js +++ b/client/me/concierge/shared/no-available-times.js @@ -42,7 +42,4 @@ class NoAvailableTimes extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( NoAvailableTimes ) ); +export default connect( null, { recordTracksEvent } )( localize( NoAvailableTimes ) ); diff --git a/client/me/connected-application-item/index.jsx b/client/me/connected-application-item/index.jsx index 03d557440430b..ca77831c8ca9d 100644 --- a/client/me/connected-application-item/index.jsx +++ b/client/me/connected-application-item/index.jsx @@ -223,10 +223,7 @@ class ConnectedApplicationItem extends React.Component { } } -export default connect( - null, - { - deleteConnectedApplication, - recordGoogleEvent, - } -)( localize( ConnectedApplicationItem ) ); +export default connect( null, { + deleteConnectedApplication, + recordGoogleEvent, +} )( localize( ConnectedApplicationItem ) ); diff --git a/client/me/happychat/main.jsx b/client/me/happychat/main.jsx index cc087ebcb7c3d..d5e495f5a2275 100644 --- a/client/me/happychat/main.jsx +++ b/client/me/happychat/main.jsx @@ -144,7 +144,4 @@ const mapDispatch = { setFocused: focus, }; -export default connect( - mapState, - mapDispatch -)( localize( HappychatPage ) ); +export default connect( mapState, mapDispatch )( localize( HappychatPage ) ); diff --git a/client/me/help/help-contact-form/index.jsx b/client/me/help/help-contact-form/index.jsx index b45ac1b85875f..025bfe01d36b8 100644 --- a/client/me/help/help-contact-form/index.jsx +++ b/client/me/help/help-contact-form/index.jsx @@ -488,7 +488,4 @@ const mapDispatchToProps = { showQandAOnInlineHelpContactForm, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( HelpContactForm ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( HelpContactForm ) ); diff --git a/client/me/help/help-courses/index.jsx b/client/me/help/help-courses/index.jsx index a1a8b33c90588..14c8bd4c2b50e 100644 --- a/client/me/help/help-courses/index.jsx +++ b/client/me/help/help-courses/index.jsx @@ -96,7 +96,4 @@ export function mapStateToProps( state ) { // something like const fetchCourses = () => receiveHelpCourses( helpCourses ); -export default connect( - mapStateToProps, - { fetchCourses } -)( localize( Courses ) ); +export default connect( mapStateToProps, { fetchCourses } )( localize( Courses ) ); diff --git a/client/me/notification-settings/reader-subscriptions/index.jsx b/client/me/notification-settings/reader-subscriptions/index.jsx index 5b6f158676487..5add73eee6334 100644 --- a/client/me/notification-settings/reader-subscriptions/index.jsx +++ b/client/me/notification-settings/reader-subscriptions/index.jsx @@ -251,13 +251,6 @@ const NotificationSubscriptions = createReactClass( { }, } ); -const connectComponent = connect( - null, - { recordGoogleEvent } -); +const connectComponent = connect( null, { recordGoogleEvent } ); -export default flowRight( - connectComponent, - localize, - protectForm -)( NotificationSubscriptions ); +export default flowRight( connectComponent, localize, protectForm )( NotificationSubscriptions ); diff --git a/client/me/notification-settings/wpcom-settings/email-category.jsx b/client/me/notification-settings/wpcom-settings/email-category.jsx index b1439b673b485..535917f4dd4bb 100644 --- a/client/me/notification-settings/wpcom-settings/email-category.jsx +++ b/client/me/notification-settings/wpcom-settings/email-category.jsx @@ -41,7 +41,4 @@ class EmailCategory extends React.Component { } } -export default connect( - null, - { toggleWPcomEmailSetting } -)( EmailCategory ); +export default connect( null, { toggleWPcomEmailSetting } )( EmailCategory ); diff --git a/client/me/privacy/main.jsx b/client/me/privacy/main.jsx index a2f724b8798ff..6fc2a0b4359d0 100644 --- a/client/me/privacy/main.jsx +++ b/client/me/privacy/main.jsx @@ -142,7 +142,4 @@ const Privacy = createReactClass( { }, } ); -export default compose( - localize, - protectForm -)( Privacy ); +export default compose( localize, protectForm )( Privacy ); diff --git a/client/me/profile-gravatar/index.jsx b/client/me/profile-gravatar/index.jsx index 27e5fa46beab6..5f659f8103c57 100644 --- a/client/me/profile-gravatar/index.jsx +++ b/client/me/profile-gravatar/index.jsx @@ -44,7 +44,4 @@ function ProfileGravatar( props ) { ); } -export default connect( - null, - { recordGravatarMisclick } -)( ProfileGravatar ); +export default connect( null, { recordGravatarMisclick } )( ProfileGravatar ); diff --git a/client/me/profile-link/index.jsx b/client/me/profile-link/index.jsx index fd6c3184b66e3..2315cce3bc417 100644 --- a/client/me/profile-link/index.jsx +++ b/client/me/profile-link/index.jsx @@ -101,9 +101,6 @@ class ProfileLink extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( ProfileLink ); +export default connect( null, { + recordGoogleEvent, +} )( ProfileLink ); diff --git a/client/me/profile-links-add-other/index.jsx b/client/me/profile-links-add-other/index.jsx index a7bbd54ac2fcf..07bd0c79c45d9 100644 --- a/client/me/profile-links-add-other/index.jsx +++ b/client/me/profile-links-add-other/index.jsx @@ -142,10 +142,7 @@ class ProfileLinksAddOther extends React.Component { } } -export default connect( - null, - { - addUserProfileLinks, - recordGoogleEvent, - } -)( localize( ProfileLinksAddOther ) ); +export default connect( null, { + addUserProfileLinks, + recordGoogleEvent, +} )( localize( ProfileLinksAddOther ) ); diff --git a/client/me/profile-links-add-wordpress/site.jsx b/client/me/profile-links-add-wordpress/site.jsx index 6e88e3da910f1..2e16f2ac0ca8e 100644 --- a/client/me/profile-links-add-wordpress/site.jsx +++ b/client/me/profile-links-add-wordpress/site.jsx @@ -62,9 +62,6 @@ class ProfileLinksAddWordPressSite extends Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( ProfileLinksAddWordPressSite ); +export default connect( null, { + recordGoogleEvent, +} )( ProfileLinksAddWordPressSite ); diff --git a/client/me/profile-links/add-buttons.jsx b/client/me/profile-links/add-buttons.jsx index ec79b4f1eb215..f96385a7c860e 100644 --- a/client/me/profile-links/add-buttons.jsx +++ b/client/me/profile-links/add-buttons.jsx @@ -74,9 +74,6 @@ class AddProfileLinksButtons extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( AddProfileLinksButtons ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( AddProfileLinksButtons ) ); diff --git a/client/me/profile/index.jsx b/client/me/profile/index.jsx index 439e572008cb4..a1143bccf3cb1 100644 --- a/client/me/profile/index.jsx +++ b/client/me/profile/index.jsx @@ -169,13 +169,6 @@ const Profile = createReactClass( { }, } ); -const connectComponent = connect( - null, - { recordGoogleEvent } -); - -export default flowRight( - connectComponent, - protectForm, - localize -)( Profile ); +const connectComponent = connect( null, { recordGoogleEvent } ); + +export default flowRight( connectComponent, protectForm, localize )( Profile ); diff --git a/client/me/purchases/add-credit-card/index.jsx b/client/me/purchases/add-credit-card/index.jsx index 8e6a5c89283a6..6b043e4e8c5fb 100644 --- a/client/me/purchases/add-credit-card/index.jsx +++ b/client/me/purchases/add-credit-card/index.jsx @@ -56,7 +56,4 @@ const mapDispatchToProps = { addStoredCard, }; -export default connect( - null, - mapDispatchToProps -)( AddCreditCard ); +export default connect( null, mapDispatchToProps )( AddCreditCard ); diff --git a/client/me/purchases/cancel-purchase/button.jsx b/client/me/purchases/cancel-purchase/button.jsx index 6576af9d96e2a..33667e410c618 100644 --- a/client/me/purchases/cancel-purchase/button.jsx +++ b/client/me/purchases/cancel-purchase/button.jsx @@ -311,10 +311,7 @@ class CancelPurchaseButton extends Component { } } -export default connect( - null, - { - clearPurchases, - refreshSitePlans, - } -)( localize( CancelPurchaseButton ) ); +export default connect( null, { + clearPurchases, + refreshSitePlans, +} )( localize( CancelPurchaseButton ) ); diff --git a/client/me/purchases/manage-purchase/notices.jsx b/client/me/purchases/manage-purchase/notices.jsx index cc1608f3f71d1..a7d074ceb39aa 100644 --- a/client/me/purchases/manage-purchase/notices.jsx +++ b/client/me/purchases/manage-purchase/notices.jsx @@ -335,7 +335,4 @@ class PurchaseNotice extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( PurchaseNotice ) ); +export default connect( null, { recordTracksEvent } )( localize( PurchaseNotice ) ); diff --git a/client/me/purchases/manage-purchase/plan-details/billing-period.jsx b/client/me/purchases/manage-purchase/plan-details/billing-period.jsx index 78ebc43292364..1a64c8f75db6a 100644 --- a/client/me/purchases/manage-purchase/plan-details/billing-period.jsx +++ b/client/me/purchases/manage-purchase/plan-details/billing-period.jsx @@ -114,9 +114,6 @@ class PlanBillingPeriod extends Component { } } -export default connect( - null, - { - recordTracksEvent, - } -)( localize( PlanBillingPeriod ) ); +export default connect( null, { + recordTracksEvent, +} )( localize( PlanBillingPeriod ) ); diff --git a/client/me/purchases/payment/add-card-details/index.jsx b/client/me/purchases/payment/add-card-details/index.jsx index 7c285aea688af..661fef28cebba 100644 --- a/client/me/purchases/payment/add-card-details/index.jsx +++ b/client/me/purchases/payment/add-card-details/index.jsx @@ -107,7 +107,4 @@ const mapStateToProps = ( state, { purchaseId } ) => ( { userId: getCurrentUserId( state ), } ); -export default connect( - mapStateToProps, - { clearPurchases, recordTracksEvent } -)( AddCardDetails ); +export default connect( mapStateToProps, { clearPurchases, recordTracksEvent } )( AddCardDetails ); diff --git a/client/me/purchases/payment/edit-card-details/index.jsx b/client/me/purchases/payment/edit-card-details/index.jsx index 05f8b53cb33a7..0dcfb89995352 100644 --- a/client/me/purchases/payment/edit-card-details/index.jsx +++ b/client/me/purchases/payment/edit-card-details/index.jsx @@ -117,7 +117,4 @@ const mapStateToProps = ( state, { cardId, purchaseId } ) => ( { userId: getCurrentUserId( state ), } ); -export default connect( - mapStateToProps, - { clearPurchases, recordTracksEvent } -)( EditCardDetails ); +export default connect( mapStateToProps, { clearPurchases, recordTracksEvent } )( EditCardDetails ); diff --git a/client/me/purchases/remove-purchase/index.jsx b/client/me/purchases/remove-purchase/index.jsx index 26bf870eb4988..a016d4fcf56b2 100644 --- a/client/me/purchases/remove-purchase/index.jsx +++ b/client/me/purchases/remove-purchase/index.jsx @@ -202,7 +202,7 @@ class RemovePurchase extends Component { // ^ is the internal WPcom domain i.e. example.wordpress.com // if we want to use the purchased domain we can swap with the below line //{ components: { domain: { getIncludedDomain( purchase ) } } } - } ) }{' '} + } ) }{ ' ' } { isGoogleApps( purchase ) ? translate( 'Your G Suite account will continue working without interruption. ' + diff --git a/client/me/reauth-required/index.jsx b/client/me/reauth-required/index.jsx index 78ab3f8536201..381c00679ce41 100644 --- a/client/me/reauth-required/index.jsx +++ b/client/me/reauth-required/index.jsx @@ -266,7 +266,4 @@ const ReauthRequired = createReactClass( { } ); /* eslint-enable jsx-a11y/no-autofocus */ -export default connect( - null, - { recordGoogleEvent } -)( localize( ReauthRequired ) ); +export default connect( null, { recordGoogleEvent } )( localize( ReauthRequired ) ); diff --git a/client/me/security-2fa-backup-codes-list/index.jsx b/client/me/security-2fa-backup-codes-list/index.jsx index d3969d7b9a2b6..8e7c382ccfca2 100644 --- a/client/me/security-2fa-backup-codes-list/index.jsx +++ b/client/me/security-2fa-backup-codes-list/index.jsx @@ -374,10 +374,7 @@ class Security2faBackupCodesList extends React.Component { } export default compose( - connect( - state => ( { username: getCurrentUserName( state ) } ), - { recordGoogleEvent } - ), + connect( state => ( { username: getCurrentUserName( state ) } ), { recordGoogleEvent } ), localize, withLocalizedMoment )( Security2faBackupCodesList ); diff --git a/client/me/security-2fa-backup-codes/index.jsx b/client/me/security-2fa-backup-codes/index.jsx index e9b026d97e04d..5793bdcb36d5a 100644 --- a/client/me/security-2fa-backup-codes/index.jsx +++ b/client/me/security-2fa-backup-codes/index.jsx @@ -163,9 +163,6 @@ class Security2faBackupCodes extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Security2faBackupCodes ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Security2faBackupCodes ) ); diff --git a/client/me/security-2fa-key/add.jsx b/client/me/security-2fa-key/add.jsx index ac24692c74b15..4be447891f518 100644 --- a/client/me/security-2fa-key/add.jsx +++ b/client/me/security-2fa-key/add.jsx @@ -81,11 +81,8 @@ class Security2faKeyAdd extends React.Component { } } -export default connect( - null, - { - errorNotice, - warningNotice, - successNotice, - } -)( localize( Security2faKeyAdd ) ); +export default connect( null, { + errorNotice, + warningNotice, + successNotice, +} )( localize( Security2faKeyAdd ) ); diff --git a/client/me/security-2fa-key/index.jsx b/client/me/security-2fa-key/index.jsx index a40038b64dd79..c0203d2f9459d 100644 --- a/client/me/security-2fa-key/index.jsx +++ b/client/me/security-2fa-key/index.jsx @@ -143,9 +143,6 @@ class Security2faKey extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Security2faKey ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Security2faKey ) ); diff --git a/client/me/security-2fa-key/item.jsx b/client/me/security-2fa-key/item.jsx index e729a25dfdbb2..a3fb1ff98ea6c 100644 --- a/client/me/security-2fa-key/item.jsx +++ b/client/me/security-2fa-key/item.jsx @@ -33,9 +33,6 @@ Security2faKeyItem.propTypes = { securityKey: PropTypes.object.isRequired, }; -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Security2faKeyItem ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Security2faKeyItem ) ); diff --git a/client/me/security-2fa-key/list.jsx b/client/me/security-2fa-key/list.jsx index 8a7c5fd305a10..a8e72148ea91e 100644 --- a/client/me/security-2fa-key/list.jsx +++ b/client/me/security-2fa-key/list.jsx @@ -36,9 +36,6 @@ Security2faKeyList.propTypes = { onDelete: PropTypes.func.isRequired, }; -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Security2faKeyList ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Security2faKeyList ) ); diff --git a/client/me/security-2fa-setup-backup-codes/index.jsx b/client/me/security-2fa-setup-backup-codes/index.jsx index 8c307d069a0f3..253e6d37ce39d 100644 --- a/client/me/security-2fa-setup-backup-codes/index.jsx +++ b/client/me/security-2fa-setup-backup-codes/index.jsx @@ -110,9 +110,6 @@ class Security2faSetupBackupCodes extends React.Component { } } -export default connect( - null, - { - recordGoogleEvent, - } -)( localize( Security2faSetupBackupCodes ) ); +export default connect( null, { + recordGoogleEvent, +} )( localize( Security2faSetupBackupCodes ) ); diff --git a/client/me/security-2fa-setup/index.jsx b/client/me/security-2fa-setup/index.jsx index 9816b1bb9cd08..c40dc671706db 100644 --- a/client/me/security-2fa-setup/index.jsx +++ b/client/me/security-2fa-setup/index.jsx @@ -105,9 +105,6 @@ class Security2faSetup extends Component { } } -export default connect( - null, - { successNotice }, - null, - { pure: false } -)( localize( Security2faSetup ) ); +export default connect( null, { successNotice }, null, { pure: false } )( + localize( Security2faSetup ) +); diff --git a/client/me/two-step/index.jsx b/client/me/two-step/index.jsx index 815cf490c9e2b..bc1ea9f6cf2aa 100644 --- a/client/me/two-step/index.jsx +++ b/client/me/two-step/index.jsx @@ -108,8 +108,8 @@ class TwoStep extends Component { for ( let i = 0; i < 5; i++ ) { placeholders.push(

- {' '} -  {' '} + { ' ' } +  { ' ' }

); } diff --git a/client/my-sites/activity/activity-log-banner/error-banner.jsx b/client/my-sites/activity/activity-log-banner/error-banner.jsx index 7074034723139..0d4580489d8af 100644 --- a/client/my-sites/activity/activity-log-banner/error-banner.jsx +++ b/client/my-sites/activity/activity-log-banner/error-banner.jsx @@ -119,11 +119,8 @@ class ErrorBanner extends PureComponent { } } -export default connect( - null, - { - dismissRewindRestoreProgress: dismissRewindRestoreProgressAction, - trackHappyChatBackup: () => recordTracksEvent( 'calypso_activitylog_error_banner_backup' ), - trackHappyChatRestore: () => recordTracksEvent( 'calypso_activitylog_error_banner_restore' ), - } -)( localize( ErrorBanner ) ); +export default connect( null, { + dismissRewindRestoreProgress: dismissRewindRestoreProgressAction, + trackHappyChatBackup: () => recordTracksEvent( 'calypso_activitylog_error_banner_backup' ), + trackHappyChatRestore: () => recordTracksEvent( 'calypso_activitylog_error_banner_restore' ), +} )( localize( ErrorBanner ) ); diff --git a/client/my-sites/activity/activity-log-confirm-dialog/index.jsx b/client/my-sites/activity/activity-log-confirm-dialog/index.jsx index 61571a4d214d9..7ed4752a534f0 100644 --- a/client/my-sites/activity/activity-log-confirm-dialog/index.jsx +++ b/client/my-sites/activity/activity-log-confirm-dialog/index.jsx @@ -120,7 +120,4 @@ const mapDispatchToProps = { happychatEvent: () => recordTracksEvent( 'calypso_activitylog_confirm_dialog' ), }; -export default connect( - null, - mapDispatchToProps -)( localize( ActivityLogConfirmDialog ) ); +export default connect( null, mapDispatchToProps )( localize( ActivityLogConfirmDialog ) ); diff --git a/client/my-sites/activity/activity-log-item/index.jsx b/client/my-sites/activity/activity-log-item/index.jsx index 4e9484c212153..b96ff8fd29705 100644 --- a/client/my-sites/activity/activity-log-item/index.jsx +++ b/client/my-sites/activity/activity-log-item/index.jsx @@ -477,10 +477,7 @@ const mapDispatchToProps = ( dispatch, { activity: { activityId }, siteId } ) => } ); export default compose( - connect( - mapStateToProps, - mapDispatchToProps - ), + connect( mapStateToProps, mapDispatchToProps ), withDesktopBreakpoint, withLocalizedMoment, localize diff --git a/client/my-sites/activity/activity-log-tasklist/index.jsx b/client/my-sites/activity/activity-log-tasklist/index.jsx index 2277889fcff37..81ab98b9beab1 100644 --- a/client/my-sites/activity/activity-log-tasklist/index.jsx +++ b/client/my-sites/activity/activity-log-tasklist/index.jsx @@ -620,8 +620,5 @@ const mapDispatchToProps = ( dispatch, { siteId } ) => ( { } ); export default WithItemsToUpdate( - connect( - mapStateToProps, - mapDispatchToProps - )( localize( ActivityLogTasklist ) ) + connect( mapStateToProps, mapDispatchToProps )( localize( ActivityLogTasklist ) ) ); diff --git a/client/my-sites/activity/activity-log/threat-alert.jsx b/client/my-sites/activity/activity-log/threat-alert.jsx index 8817d8728b30e..026f14d652ff3 100644 --- a/client/my-sites/activity/activity-log/threat-alert.jsx +++ b/client/my-sites/activity/activity-log/threat-alert.jsx @@ -393,19 +393,16 @@ const mapStateToProps = state => ( { siteSlug: getSelectedSiteSlug( state ), } ); -export default connect( - mapStateToProps, - { - fixThreat: ( siteId, threatId ) => - withAnalytics( - recordTracksEvent( 'calypso_activitylog_threat_fix', { threat_id: threatId } ), - fixThreatAlert( siteId, threatId ) - ), - ignoreThreat: ( siteId, threatId ) => - withAnalytics( - recordTracksEvent( 'calypso_activitylog_threat_ignore', { threat_id: threatId } ), - ignoreThreatAlert( siteId, threatId ) - ), - requestRewindState, - } -)( localize( ThreatAlert ) ); +export default connect( mapStateToProps, { + fixThreat: ( siteId, threatId ) => + withAnalytics( + recordTracksEvent( 'calypso_activitylog_threat_fix', { threat_id: threatId } ), + fixThreatAlert( siteId, threatId ) + ), + ignoreThreat: ( siteId, threatId ) => + withAnalytics( + recordTracksEvent( 'calypso_activitylog_threat_ignore', { threat_id: threatId } ), + ignoreThreatAlert( siteId, threatId ) + ), + requestRewindState, +} )( localize( ThreatAlert ) ); diff --git a/client/my-sites/activity/filterbar/action-type-selector.jsx b/client/my-sites/activity/filterbar/action-type-selector.jsx index 7f1ad7bcc8e36..4234658d12aad 100644 --- a/client/my-sites/activity/filterbar/action-type-selector.jsx +++ b/client/my-sites/activity/filterbar/action-type-selector.jsx @@ -280,7 +280,4 @@ const mapDispatchToProps = dispatch => ( { }, } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ActionTypeSelector ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ActionTypeSelector ) ); diff --git a/client/my-sites/activity/filterbar/date-range-selector.jsx b/client/my-sites/activity/filterbar/date-range-selector.jsx index b85975589143b..3866e4711125e 100644 --- a/client/my-sites/activity/filterbar/date-range-selector.jsx +++ b/client/my-sites/activity/filterbar/date-range-selector.jsx @@ -321,10 +321,7 @@ const mapDispatchToProps = dispatch => ( { } ); export default compose( - connect( - null, - mapDispatchToProps - ), + connect( null, mapDispatchToProps ), localize, withLocalizedMoment )( DateRangeSelector ); diff --git a/client/my-sites/activity/filterbar/index.jsx b/client/my-sites/activity/filterbar/index.jsx index d6bdb5e3e2f41..a5c1a790b36ba 100644 --- a/client/my-sites/activity/filterbar/index.jsx +++ b/client/my-sites/activity/filterbar/index.jsx @@ -165,7 +165,4 @@ const mapDispatchToProps = dispatch => ( { ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( Filterbar ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( Filterbar ) ); diff --git a/client/my-sites/checklist/share.jsx b/client/my-sites/checklist/share.jsx index d87accdfa05c6..e57966b30f273 100644 --- a/client/my-sites/checklist/share.jsx +++ b/client/my-sites/checklist/share.jsx @@ -59,7 +59,4 @@ class ChecklistShowShare extends PureComponent { ); } } -export default connect( - null, - { recordTracksEvent } -)( ChecklistShowShare ); +export default connect( null, { recordTracksEvent } )( ChecklistShowShare ); diff --git a/client/my-sites/checklist/wpcom-checklist/checklist-banner/index.jsx b/client/my-sites/checklist/wpcom-checklist/checklist-banner/index.jsx index 53395e3f079ed..a76f0fe3ca0f8 100644 --- a/client/my-sites/checklist/wpcom-checklist/checklist-banner/index.jsx +++ b/client/my-sites/checklist/wpcom-checklist/checklist-banner/index.jsx @@ -145,7 +145,4 @@ const mapDispatchToProps = { track: recordTracksEvent, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( ChecklistBanner ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( ChecklistBanner ) ); diff --git a/client/my-sites/checklist/wpcom-checklist/checklist-onboarding-welcome/index.jsx b/client/my-sites/checklist/wpcom-checklist/checklist-onboarding-welcome/index.jsx index 99bcf1f7ded56..3bdec5582132b 100644 --- a/client/my-sites/checklist/wpcom-checklist/checklist-onboarding-welcome/index.jsx +++ b/client/my-sites/checklist/wpcom-checklist/checklist-onboarding-welcome/index.jsx @@ -78,7 +78,7 @@ class ChecklistOnboardingWelcome extends Component {

- { translate( 'Estimated time:' ) }{' '} + { translate( 'Estimated time:' ) }{ ' ' } { translate( '%d minute', '%d minutes', { count: 15, args: [ 15 ] } ) }

diff --git a/client/my-sites/checkout/cart/cart-buttons.jsx b/client/my-sites/checkout/cart/cart-buttons.jsx index fddf8ce9f2288..47bac30e6529d 100644 --- a/client/my-sites/checkout/cart/cart-buttons.jsx +++ b/client/my-sites/checkout/cart/cart-buttons.jsx @@ -46,7 +46,4 @@ export class CartButtons extends React.Component { }; } -export default connect( - null, - { recordGoogleEvent } -)( localize( CartButtons ) ); +export default connect( null, { recordGoogleEvent } )( localize( CartButtons ) ); diff --git a/client/my-sites/checkout/cart/cart-coupon.jsx b/client/my-sites/checkout/cart/cart-coupon.jsx index 056f6c0724008..9263c3549ec6b 100644 --- a/client/my-sites/checkout/cart/cart-coupon.jsx +++ b/client/my-sites/checkout/cart/cart-coupon.jsx @@ -56,7 +56,7 @@ export class CartCoupon extends React.Component { { this.props.translate( 'Coupon applied: %(coupon)s', { args: { coupon: this.appliedCouponCode }, } ) } -
{' '} + { ' ' } @@ -178,7 +178,4 @@ const mapDispatchToProps = dispatch => ( { }, } ); -export default connect( - null, - mapDispatchToProps -)( localize( CartCoupon ) ); +export default connect( null, mapDispatchToProps )( localize( CartCoupon ) ); diff --git a/client/my-sites/checkout/cart/cart-plan-ad-theme.jsx b/client/my-sites/checkout/cart/cart-plan-ad-theme.jsx index cd166f18942aa..2cb1c7cc8809c 100644 --- a/client/my-sites/checkout/cart/cart-plan-ad-theme.jsx +++ b/client/my-sites/checkout/cart/cart-plan-ad-theme.jsx @@ -71,7 +71,7 @@ class CartPlanAdTheme extends Component { cta_name: eventName, } } /> - Get this theme for FREE when you upgrade to a Premium plan!{' '} + Get this theme for FREE when you upgrade to a Premium plan!{ ' ' } @@ -99,7 +99,4 @@ const mapStateToProps = state => { }; }; -export default connect( - mapStateToProps, - { recordTracksEvent } -)( localize( CartPlanAdTheme ) ); +export default connect( mapStateToProps, { recordTracksEvent } )( localize( CartPlanAdTheme ) ); diff --git a/client/my-sites/checkout/cart/test/cart-item.js b/client/my-sites/checkout/cart/test/cart-item.js index 6d3be15b1cc0c..fac6416092c34 100644 --- a/client/my-sites/checkout/cart/test/cart-item.js +++ b/client/my-sites/checkout/cart/test/cart-item.js @@ -224,11 +224,26 @@ describe( 'cart-item', () => { } ); const expectations = [ - [ { product_slug: PLAN_BLOGGER, cost: 60 }, { months: 12, monthlyPrice: 5 } ], - [ { product_slug: PLAN_PERSONAL, cost: 120 }, { months: 12, monthlyPrice: 10 } ], - [ { product_slug: PLAN_PREMIUM, cost: 180 }, { months: 12, monthlyPrice: 15 } ], - [ { product_slug: PLAN_BUSINESS_2_YEARS, cost: 480 }, { months: 24, monthlyPrice: 20 } ], - [ { product_slug: PLAN_JETPACK_PERSONAL, cost: 288 }, { months: 12, monthlyPrice: 24 } ], + [ + { product_slug: PLAN_BLOGGER, cost: 60 }, + { months: 12, monthlyPrice: 5 }, + ], + [ + { product_slug: PLAN_PERSONAL, cost: 120 }, + { months: 12, monthlyPrice: 10 }, + ], + [ + { product_slug: PLAN_PREMIUM, cost: 180 }, + { months: 12, monthlyPrice: 15 }, + ], + [ + { product_slug: PLAN_BUSINESS_2_YEARS, cost: 480 }, + { months: 24, monthlyPrice: 20 }, + ], + [ + { product_slug: PLAN_JETPACK_PERSONAL, cost: 288 }, + { months: 12, monthlyPrice: 24 }, + ], ]; expectations.forEach( ( [ input, output ] ) => { diff --git a/client/my-sites/checkout/checkout-thank-you/google-apps-details.jsx b/client/my-sites/checkout/checkout-thank-you/google-apps-details.jsx index 07057590082b0..6890e7c737fc7 100644 --- a/client/my-sites/checkout/checkout-thank-you/google-apps-details.jsx +++ b/client/my-sites/checkout/checkout-thank-you/google-apps-details.jsx @@ -52,9 +52,6 @@ const GoogleAppsDetails = props => { ); }; -export default connect( - null, - { - dismissNudge, - } -)( GoogleAppsDetails ); +export default connect( null, { + dismissNudge, +} )( GoogleAppsDetails ); diff --git a/client/my-sites/checkout/checkout-thank-you/header.jsx b/client/my-sites/checkout/checkout-thank-you/header.jsx index 14ff3bc38381e..ecb53808c0432 100644 --- a/client/my-sites/checkout/checkout-thank-you/header.jsx +++ b/client/my-sites/checkout/checkout-thank-you/header.jsx @@ -375,10 +375,7 @@ class CheckoutThankYouHeader extends PureComponent { } } -export default connect( - null, - { - recordStartTransferClickInThankYou, - recordTracksEvent, - } -)( localize( CheckoutThankYouHeader ) ); +export default connect( null, { + recordStartTransferClickInThankYou, + recordTracksEvent, +} )( localize( CheckoutThankYouHeader ) ); diff --git a/client/my-sites/checkout/checkout-thank-you/jetpack-plan-details.jsx b/client/my-sites/checkout/checkout-thank-you/jetpack-plan-details.jsx index 3e31af27d6118..1ca6e800e719c 100644 --- a/client/my-sites/checkout/checkout-thank-you/jetpack-plan-details.jsx +++ b/client/my-sites/checkout/checkout-thank-you/jetpack-plan-details.jsx @@ -131,10 +131,7 @@ const mapDispatchToProps = ( dispatch, { selectedSite } ) => ( { } ); const JetpackPlanDetails = config.isEnabled( 'manage/plugins/setup' ) - ? connect( - null, - mapDispatchToProps - )( EnhancedDetails ) + ? connect( null, mapDispatchToProps )( EnhancedDetails ) : BasicDetails; export default localize( JetpackPlanDetails ); diff --git a/client/my-sites/checkout/checkout/domain-details-form.jsx b/client/my-sites/checkout/checkout/domain-details-form.jsx index 9aba70f2e4996..fdf8d9e5b8574 100644 --- a/client/my-sites/checkout/checkout/domain-details-form.jsx +++ b/client/my-sites/checkout/checkout/domain-details-form.jsx @@ -334,10 +334,7 @@ export class DomainDetailsFormContainer extends PureComponent { } } -export default connect( - state => ( { contactDetails: getContactDetailsCache( state ) } ), - { - recordTracksEvent, - updateContactDetailsCache, - } -)( localize( DomainDetailsFormContainer ) ); +export default connect( state => ( { contactDetails: getContactDetailsCache( state ) } ), { + recordTracksEvent, + updateContactDetailsCache, +} )( localize( DomainDetailsFormContainer ) ); diff --git a/client/my-sites/checkout/checkout/payment-chat-button.jsx b/client/my-sites/checkout/checkout/payment-chat-button.jsx index f3a01feb5c2d8..9b3a9ce08a704 100644 --- a/client/my-sites/checkout/checkout/payment-chat-button.jsx +++ b/client/my-sites/checkout/checkout/payment-chat-button.jsx @@ -32,7 +32,4 @@ export class PaymentChatButton extends Component { } } -export default connect( - null, - { recordTracksEvent } -)( localize( PaymentChatButton ) ); +export default connect( null, { recordTracksEvent } )( localize( PaymentChatButton ) ); diff --git a/client/my-sites/checkout/checkout/privacy-protection-example.jsx b/client/my-sites/checkout/checkout/privacy-protection-example.jsx index 1acf0607e9451..8f62e3068611b 100644 --- a/client/my-sites/checkout/checkout/privacy-protection-example.jsx +++ b/client/my-sites/checkout/checkout/privacy-protection-example.jsx @@ -92,7 +92,7 @@ const PrivacyProtectionExample = ( { translate, fields, countriesList } ) => {

{ lines.map( ( line, index ) => { return { line }; - } ) }{' '} + } ) }{ ' ' }

); }; diff --git a/client/my-sites/checkout/checkout/recent-renewals.jsx b/client/my-sites/checkout/checkout/recent-renewals.jsx index 5a6371054ed58..f0ae480bb5d7b 100644 --- a/client/my-sites/checkout/checkout/recent-renewals.jsx +++ b/client/my-sites/checkout/checkout/recent-renewals.jsx @@ -18,7 +18,7 @@ function RecentRenewalListItem( { domain, productName, expiryMoment, translate } return ( expiryMoment && (
  • - { domain }{' '} + { domain }{ ' ' } { translate( '%(productName)s recently renewed and will expire on %(expiryDate)s', { args: { productName, diff --git a/client/my-sites/checkout/checkout/redirect-payment-box.jsx b/client/my-sites/checkout/checkout/redirect-payment-box.jsx index e1cf51a201aaf..33c19d9f15c0f 100644 --- a/client/my-sites/checkout/checkout/redirect-payment-box.jsx +++ b/client/my-sites/checkout/checkout/redirect-payment-box.jsx @@ -154,9 +154,7 @@ export class RedirectPaymentBox extends PureComponent { cancelUrl += this.props.selectedSite.slug; successUrl = origin + - `/checkout/thank-you/${ - this.props.selectedSite.slug - }/pending?redirectTo=${ redirectPath }`; + `/checkout/thank-you/${ this.props.selectedSite.slug }/pending?redirectTo=${ redirectPath }`; } else { cancelUrl += 'no-site'; successUrl = origin + `/checkout/thank-you/no-site/pending?redirectTo=${ redirectPath }`; diff --git a/client/my-sites/checkout/upsell-nudge/concierge-quickstart-session/index.jsx b/client/my-sites/checkout/upsell-nudge/concierge-quickstart-session/index.jsx index 6cb2c6fe05239..d48aea8e53bcd 100644 --- a/client/my-sites/checkout/upsell-nudge/concierge-quickstart-session/index.jsx +++ b/client/my-sites/checkout/upsell-nudge/concierge-quickstart-session/index.jsx @@ -199,7 +199,7 @@ export class ConciergeQuickstartSession extends PureComponent { }, } ) } - {' '} + { ' ' }

    { receiptId diff --git a/client/my-sites/checkout/upsell-nudge/concierge-support-session/index.jsx b/client/my-sites/checkout/upsell-nudge/concierge-support-session/index.jsx index e9f8b51321c9f..c210c88d73d5a 100644 --- a/client/my-sites/checkout/upsell-nudge/concierge-support-session/index.jsx +++ b/client/my-sites/checkout/upsell-nudge/concierge-support-session/index.jsx @@ -181,7 +181,7 @@ export class ConciergeSupportSession extends PureComponent { }, } ) } - {' '} + { ' ' } { translate( 'Click the button below to confirm your purchase (sessions are currently limited to English language support).' ) } diff --git a/client/my-sites/comment/comment-delete-warning.jsx b/client/my-sites/comment/comment-delete-warning.jsx index 4c89e44f6de2c..960bc90037093 100644 --- a/client/my-sites/comment/comment-delete-warning.jsx +++ b/client/my-sites/comment/comment-delete-warning.jsx @@ -68,7 +68,4 @@ const mapDispatchToProps = ( dispatch, { siteId, postId, commentId, redirectToPo }, } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentDeleteWarning ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentDeleteWarning ) ); diff --git a/client/my-sites/comments/comment-list/comment-list-header.jsx b/client/my-sites/comments/comment-list/comment-list-header.jsx index 9d652c4696373..46602b23e86da 100644 --- a/client/my-sites/comments/comment-list/comment-list-header.jsx +++ b/client/my-sites/comments/comment-list/comment-list-header.jsx @@ -116,7 +116,4 @@ const mapDispatchToProps = dispatch => ( { ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentListHeader ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentListHeader ) ); diff --git a/client/my-sites/comments/comment-list/index.jsx b/client/my-sites/comments/comment-list/index.jsx index 18cc3a3c8a47a..d85b02c8ebaa1 100644 --- a/client/my-sites/comments/comment-list/index.jsx +++ b/client/my-sites/comments/comment-list/index.jsx @@ -262,7 +262,4 @@ const mapDispatchToProps = dispatch => ( { ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentList ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentList ) ); diff --git a/client/my-sites/comments/comment-tree/index.jsx b/client/my-sites/comments/comment-tree/index.jsx index 763312d498e5f..15a3f34ce0a08 100644 --- a/client/my-sites/comments/comment-tree/index.jsx +++ b/client/my-sites/comments/comment-tree/index.jsx @@ -279,7 +279,4 @@ const mapDispatchToProps = dispatch => ( { ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentTree ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentTree ) ); diff --git a/client/my-sites/comments/comment/comment-actions.jsx b/client/my-sites/comments/comment/comment-actions.jsx index e205a7acc95a3..cf15d54110f48 100644 --- a/client/my-sites/comments/comment/comment-actions.jsx +++ b/client/my-sites/comments/comment/comment-actions.jsx @@ -338,7 +338,4 @@ const mapDispatchToProps = ( dispatch, { siteId, postId, commentId, commentsList ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentActions ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentActions ) ); diff --git a/client/my-sites/comments/comment/comment-author-more-info.jsx b/client/my-sites/comments/comment/comment-author-more-info.jsx index cb4a8cdbb77bd..fdc8f7c2973f4 100644 --- a/client/my-sites/comments/comment/comment-author-more-info.jsx +++ b/client/my-sites/comments/comment/comment-author-more-info.jsx @@ -254,7 +254,4 @@ const mapDispatchToProps = dispatch => ( { ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentAuthorMoreInfo ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentAuthorMoreInfo ) ); diff --git a/client/my-sites/comments/comment/comment-edit.jsx b/client/my-sites/comments/comment/comment-edit.jsx index 4fdc146424bfd..da73821e9550c 100644 --- a/client/my-sites/comments/comment/comment-edit.jsx +++ b/client/my-sites/comments/comment/comment-edit.jsx @@ -283,7 +283,4 @@ const mapDispatchToProps = ( dispatch, { commentId } ) => ( { successNotice: ( text, options ) => dispatch( successNotice( text, options ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentEdit ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentEdit ) ); diff --git a/client/my-sites/comments/comment/comment-link.jsx b/client/my-sites/comments/comment/comment-link.jsx index bb1f8ab2a29b4..4454a01442cc9 100644 --- a/client/my-sites/comments/comment/comment-link.jsx +++ b/client/my-sites/comments/comment/comment-link.jsx @@ -55,7 +55,4 @@ export class CommentLink extends PureComponent { const mapDispatchToProps = { navigate }; -export default connect( - null, - mapDispatchToProps -)( CommentLink ); +export default connect( null, mapDispatchToProps )( CommentLink ); diff --git a/client/my-sites/comments/comment/comment-reply.jsx b/client/my-sites/comments/comment/comment-reply.jsx index bb12e375c1da7..f0751b136393d 100644 --- a/client/my-sites/comments/comment/comment-reply.jsx +++ b/client/my-sites/comments/comment/comment-reply.jsx @@ -228,7 +228,4 @@ const mapDispatchToProps = ( dispatch, { commentId, commentsListQuery } ) => ( { successNotice: ( text, options ) => dispatch( successNotice( text, options ) ), } ); -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentReply ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentReply ) ); diff --git a/client/my-sites/comments/main.jsx b/client/my-sites/comments/main.jsx index a1e4e623509a4..d25e78be909d3 100644 --- a/client/my-sites/comments/main.jsx +++ b/client/my-sites/comments/main.jsx @@ -173,7 +173,4 @@ const mapDispatchToProps = { infoNotice, }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( CommentsManagement ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( CommentsManagement ) ); diff --git a/client/my-sites/current-site/domain-to-paid-plan-notice.jsx b/client/my-sites/current-site/domain-to-paid-plan-notice.jsx index 785cd32615270..1366d62082e84 100644 --- a/client/my-sites/current-site/domain-to-paid-plan-notice.jsx +++ b/client/my-sites/current-site/domain-to-paid-plan-notice.jsx @@ -72,7 +72,4 @@ const mapStateToProps = state => { }; const mapDispatchToProps = null; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( DomainToPaidPlanNotice ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( DomainToPaidPlanNotice ) ); diff --git a/client/my-sites/current-site/sidebar-banner/index.jsx b/client/my-sites/current-site/sidebar-banner/index.jsx index 28adf6f4fcf30..9850e54ec30a3 100644 --- a/client/my-sites/current-site/sidebar-banner/index.jsx +++ b/client/my-sites/current-site/sidebar-banner/index.jsx @@ -73,7 +73,4 @@ export class SidebarBanner extends Component { const mapStateToProps = null; const mapDispatchToProps = { track: recordTracksEvent }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( SidebarBanner ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( SidebarBanner ) ); diff --git a/client/my-sites/customer-home/main.jsx b/client/my-sites/customer-home/main.jsx index 401caff3ab698..106f680f60143 100644 --- a/client/my-sites/customer-home/main.jsx +++ b/client/my-sites/customer-home/main.jsx @@ -473,8 +473,4 @@ const connectHome = connect( } ) ); -export default flowRight( - connectHome, - localize, - withTrackingTool( 'HotJar' ) -)( Home ); +export default flowRight( connectHome, localize, withTrackingTool( 'HotJar' ) )( Home ); diff --git a/client/my-sites/domains/components/domain-warnings/index.jsx b/client/my-sites/domains/components/domain-warnings/index.jsx index afb288c017de1..228db8fa3e57c 100644 --- a/client/my-sites/domains/components/domain-warnings/index.jsx +++ b/client/my-sites/domains/components/domain-warnings/index.jsx @@ -230,7 +230,7 @@ export class DomainWarnings extends React.PureComponent { } else { children = ( - { text }{' '} + { text }{ ' ' } { translate( 'Learn more' ) } @@ -1096,7 +1096,4 @@ export class DomainWarnings extends React.PureComponent { const mapStateToProps = null; const mapDispatchToProps = { recordTracksEvent }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( localize( DomainWarnings ) ); +export default connect( mapStateToProps, mapDispatchToProps )( localize( DomainWarnings ) ); diff --git a/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice-dialog.jsx b/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice-dialog.jsx index de28f8d8ffbd1..7f9b9e7103fe2 100644 --- a/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice-dialog.jsx +++ b/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice-dialog.jsx @@ -214,10 +214,7 @@ const trackEvent = ( { domainName, message, section, siteSlug, tracksEvent, user } ) ); -export default connect( - null, - { - errorNotice, - trackEvent, - } -)( PendingGSuiteTosNoticeDialog ); +export default connect( null, { + errorNotice, + trackEvent, +} )( PendingGSuiteTosNoticeDialog ); diff --git a/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice.jsx b/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice.jsx index 92d9797c37ee4..b7377209e9a1e 100644 --- a/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice.jsx +++ b/client/my-sites/domains/components/domain-warnings/pending-gsuite-tos-notice.jsx @@ -231,10 +231,7 @@ const finishSetupNoticeClick = siteSlug => } ) ); -export default connect( - null, - { - finishSetupNoticeClick, - recordShowPendingAccountNotice, - } -)( localize( PendingGSuiteTosNotice ) ); +export default connect( null, { + finishSetupNoticeClick, + recordShowPendingAccountNotice, +} )( localize( PendingGSuiteTosNotice ) ); diff --git a/client/my-sites/domains/components/form/test/select.js b/client/my-sites/domains/components/form/test/select.js index c6d156a07e906..9fb4c5108f2c4 100644 --- a/client/my-sites/domains/components/form/test/select.js +++ b/client/my-sites/domains/components/form/test/select.js @@ -22,7 +22,10 @@ describe( '