From 1835f94661068d5d10323fd42608596bb9064a01 Mon Sep 17 00:00:00 2001
From: Jarda Snajdr
- Site:{' '}
+ Site:{ ' ' }
{ site.name } ({ siteId })
diff --git a/client/blocks/signup-form/passwordless.jsx b/client/blocks/signup-form/passwordless.jsx
index c60eef03cb35f5..778cc7ad0fd985 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 166862fff97a9b..c39ae61567a3f1 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 0cd32c5da9d0b7..239fd2accfa4bb 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 3355cb9fb1bba7..32af1f775b8cc4 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 2ebd26d6dff0db..f52805fae48d93 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 a72454e7cc70fa..f28b11846391b1 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 261b586139bba5..6e55073a5aaecf 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 bb0eeebe6609d8..dde09675bf3ed3 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 6b9c5f307212da..0b90c6b9194aaa 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 0812b76f36d632..3fc7b43ce03a2f 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 2da1da7088fb2d..10582496622548 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 f0d004b17e4a75..b90cbf70be1723 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 bcea9c91cf4b04..ac094d096b3ca2 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 d465945013282a..8a16adaa5d7be2 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 96e4fba21d38c1..2c888e432bcad8 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 36b25cf5252eb6..5e7efc7cabb059 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 e5f090c48c7526..4886d1c0812ded 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 360e4ff77c2f3d..22d47362c65354 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 d689c897fea754..95c233597b0f8e 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 b3fb928347f72a..1cfa495ca6bece 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 52a931d69b0cd5..6b841942cc6a17 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 927d403a9eccfa..5b2ceade088d5d 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 8c1564aa0a6b4c..faedc58c331c82 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 2f6e5ef013fe19..23bc81d591d4cd 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 f1e959f4151139..231e3d2d0ec527 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 592f7609d21760..9e6ea5c2a1db8a 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 3a3caebb6f9ed3..c8175029436672 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 3a432d7e92fa4b..26ed70612b7c4c 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 c23d182412f478..22136a1be6ddc6 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 321122aa1ebd1f..82a5a24ba431fc 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 e13dc6d867fec5..f6600f71c4388d 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 c8953d2a6ae459..8111101bf07953 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 7821c98ada5bea..47563b8be7e11d 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 7231a3b0147747..cda8ce33a1257b 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 ca36cfb848fd8b..dca0398e8e35c3 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 c3e01986274ef6..a749c8c4525989 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 bf0ca0de851e7c..51e2c3b15a7599 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 caa9f19b21488d..d50e9b7d4f7702 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 60d84b153edc51..11f684d3254045 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 4f1b903114f020..4fb95303e9c7ee 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 a1ee8d251bd38a..6162a9ec5deff3 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 3bd0ee5d4ac5e4..055ec55424747f 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 3d9516800da5d5..24c436414d45c1 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 30e8145f0ac061..33a58bdaa6b54b 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 ac92fdc3c7bada..fa3ebe62f1ef36 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 f774208c502675..f76d83d41a6024 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 0ff3b961972253..31044239246f70 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 837ac02ae3af21..c2274e804f251b 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 d136be98d5bf90..096bb45d11dbae 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 7c9ba9a7ae71a4..c73e7d46662954 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 71b70ad12c8890..a8bd536457ec49 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 8d40f90583f285..a4120d3b89d653 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 67723c803b6fea..f4d3c6ba19cad3 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 521e558e1c0d28..12939d5ede0794 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 f2f13ebadbc85f..251be105550e14 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 9fae44ba147e6a..610a865d55b79a 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 3a55d4c635f336..b3cf286440644b 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 2b6183989b6383..2496b6a72ced5d 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 4a924254e28b53..33c3b01d758b69 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 41e485eccce2cc..d50c5d79766a1e 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 fe9ee05bae59f9..2b2c358ce71cef 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 b4e6ae0652b15f..006edd10cd87fe 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 1c18119bf79b04..2d4c7f5f51f512 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 e0bcc06b4ab5df..312ab521878215 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 d25a020204d26e..a0119efc6e7506 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 dd911c5bfbebd2..84c5510f238fa0 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 5f7050e50cbccf..aab1d7a188a50f 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 875a797c89edf9..ad6b519b9ead0e 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 95d8dbb9fda0b3..dd0b4937685383 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 e3b9f8da075094..4a81dcc5c111f8 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 a114dd5c1b289d..39623cda4176d4 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{ ' ' }
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
- {' '}
+ 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 fbc77949f73f23..5edbcd9fdbf119 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 (
- 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!
- 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 914696592441f1..6f73fb337cb8f3 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 1059b10e1a2e66..0b31afee8683d0 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 35ae4e00cbc5d7..46a154531f8620 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 7ef4bb59fa1170..fa5c9d513d824f 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 73a2b93ddc1fca..4c0c998d9e69cd 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 e331361b4a1030..b03844a751e480 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 d602a26d9cb0d0..29502a858e9398 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 71398052575db2..2b037d2f409158 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 6746eff2b0025c..26c12b4c9be175 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 30360d30109ec0..8be85589ca981d 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 {- {' '} - {' '} + { ' ' } + { ' ' }
); } 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 70740347231397..0d4580489d8af1 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 61571a4d214d99..7ed4752a534f05 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 4e9484c2121533..b96ff8fd297057 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 2277889fcff377..81ab98b9beab14 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 8817d8728b30ed..026f14d652ff39 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 7f1ad7bcc8e361..4234658d12aada 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 b85975589143b7..3866e4711125eb 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 d6bdb5e3e2f413..a5c1a790b36ba0 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 d87accdfa05c69..e57966b30f2734 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 53395e3f079ed6..a76f0fe3ca0f82 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 99bcf1f7ded564..3bdec5582132b8 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 {
{ 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 5a6371054ed581..f0ae480bb5d7b6 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 && (
{ 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 e9f8b51321c9f6..c210c88d73d5a9 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 4c89e44f6de2cd..960bc900370931 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 9d652c4696373d..46602b23e86daf 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 18cc3a3c8a47a5..d85b02c8ebaa15 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 763312d498e5f1..15a3f34ce0a084 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 e205a7acc95a34..cf15d54110f48f 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 cb4a8cdbb77bd5..fdc8f7c2973f40 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 4fdc146424bfd1..da73821e9550c4 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 bb1f8ab2a29b4f..4454a01442cc9b 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 bb12e375c1da70..f0751b136393dd 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 a1e4e623509a42..d25e78be909d31 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 785cd326152703..1366d62082e84e 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 28adf6f4fcf30c..9850e54ec30a3a 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 401caff3ab698f..106f680f601434 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 afb288c017de12..228db8fa3e57ce 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 de28f8d8ffbd1b..7f9b9e7103fe2d 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 92d9797c37ee4f..b7377209e9a1e9 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 c6d156a07e906c..9fb4c5108f2c42 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( '', () => {
label: 'Select label',
name: 'select',
onChange: jest.fn(),
- options: [ { label: 'uno', value: 1 }, { label: 'due', value: 2 } ],
+ options: [
+ { label: 'uno', value: 1 },
+ { label: 'due', value: 2 },
+ ],
value: '',
additionalClasses: 'mega-selectzilla',
errorMessage: null,
diff --git a/client/my-sites/domains/domain-management/components/email-verification/index.jsx b/client/my-sites/domains/domain-management/components/email-verification/index.jsx
index 014be70cf09143..d9faf3024b9dbd 100644
--- a/client/my-sites/domains/domain-management/components/email-verification/index.jsx
+++ b/client/my-sites/domains/domain-management/components/email-verification/index.jsx
@@ -133,7 +133,4 @@ class EmailVerificationCard extends React.Component {
}
}
-export default connect(
- null,
- { errorNotice }
-)( localize( EmailVerificationCard ) );
+export default connect( null, { errorNotice } )( localize( EmailVerificationCard ) );
diff --git a/client/my-sites/domains/domain-management/dns/dns-add-new.jsx b/client/my-sites/domains/domain-management/dns/dns-add-new.jsx
index 5769dd45bdde9b..5683e05d4e3fd9 100644
--- a/client/my-sites/domains/domain-management/dns/dns-add-new.jsx
+++ b/client/my-sites/domains/domain-management/dns/dns-add-new.jsx
@@ -214,10 +214,7 @@ class DnsAddNew extends React.Component {
}
}
-export default connect(
- null,
- {
- errorNotice,
- successNotice,
- }
-)( localize( DnsAddNew ) );
+export default connect( null, {
+ errorNotice,
+ successNotice,
+} )( localize( DnsAddNew ) );
diff --git a/client/my-sites/domains/domain-management/dns/dns-list.jsx b/client/my-sites/domains/domain-management/dns/dns-list.jsx
index e0808eef8bd437..6eb78b7f1089c5 100644
--- a/client/my-sites/domains/domain-management/dns/dns-list.jsx
+++ b/client/my-sites/domains/domain-management/dns/dns-list.jsx
@@ -146,11 +146,8 @@ class DnsList extends React.Component {
}
}
-export default connect(
- null,
- {
- errorNotice,
- removeNotice,
- successNotice,
- }
-)( localize( DnsList ) );
+export default connect( null, {
+ errorNotice,
+ removeNotice,
+ successNotice,
+} )( localize( DnsList ) );
diff --git a/client/my-sites/domains/domain-management/dns/domain-connect-record.jsx b/client/my-sites/domains/domain-management/dns/domain-connect-record.jsx
index 4fa78e9d92b309..207402e3ffc6b5 100644
--- a/client/my-sites/domains/domain-management/dns/domain-connect-record.jsx
+++ b/client/my-sites/domains/domain-management/dns/domain-connect-record.jsx
@@ -138,11 +138,8 @@ class DomainConnectRecord extends React.Component {
}
}
-export default connect(
- null,
- {
- errorNotice,
- removeNotice,
- successNotice,
- }
-)( localize( DomainConnectRecord ) );
+export default connect( null, {
+ errorNotice,
+ removeNotice,
+ successNotice,
+} )( localize( DomainConnectRecord ) );
diff --git a/client/my-sites/domains/domain-management/dns/email-provider.jsx b/client/my-sites/domains/domain-management/dns/email-provider.jsx
index 2db23ab23eb0d1..8fa9754d165e0a 100644
--- a/client/my-sites/domains/domain-management/dns/email-provider.jsx
+++ b/client/my-sites/domains/domain-management/dns/email-provider.jsx
@@ -102,10 +102,7 @@ class EmailProvider extends Component {
}
}
-export default connect(
- null,
- {
- errorNotice,
- successNotice,
- }
-)( localize( EmailProvider ) );
+export default connect( null, {
+ errorNotice,
+ successNotice,
+} )( localize( EmailProvider ) );
diff --git a/client/my-sites/domains/domain-management/edit/card/header/primary-domain-button.jsx b/client/my-sites/domains/domain-management/edit/card/header/primary-domain-button.jsx
index 2b45212a11ad03..dc0b363423046b 100644
--- a/client/my-sites/domains/domain-management/edit/card/header/primary-domain-button.jsx
+++ b/client/my-sites/domains/domain-management/edit/card/header/primary-domain-button.jsx
@@ -58,7 +58,4 @@ PrimaryDomainButton.propTypes = {
translate: PropTypes.func.isRequired,
};
-export default connect(
- null,
- { recordMakePrimaryClick }
-)( localize( PrimaryDomainButton ) );
+export default connect( null, { recordMakePrimaryClick } )( localize( PrimaryDomainButton ) );
diff --git a/client/my-sites/domains/domain-management/edit/registered-domain.jsx b/client/my-sites/domains/domain-management/edit/registered-domain.jsx
index d41f3ced068e79..1ecb6741e23e16 100644
--- a/client/my-sites/domains/domain-management/edit/registered-domain.jsx
+++ b/client/my-sites/domains/domain-management/edit/registered-domain.jsx
@@ -208,9 +208,6 @@ const paymentSettingsClick = domain =>
} )
);
-export default connect(
- null,
- {
- paymentSettingsClick,
- }
-)( localize( RegisteredDomain ) );
+export default connect( null, {
+ paymentSettingsClick,
+} )( localize( RegisteredDomain ) );
diff --git a/client/my-sites/domains/domain-management/edit/transfer.jsx b/client/my-sites/domains/domain-management/edit/transfer.jsx
index 5b139859f22230..c72cbf3a7a6244 100644
--- a/client/my-sites/domains/domain-management/edit/transfer.jsx
+++ b/client/my-sites/domains/domain-management/edit/transfer.jsx
@@ -179,12 +179,9 @@ const paymentSettingsClick = domain =>
} )
);
-export default connect(
- null,
- {
- errorNotice,
- fetchSiteDomains,
- paymentSettingsClick,
- successNotice,
- }
-)( localize( Transfer ) );
+export default connect( null, {
+ errorNotice,
+ fetchSiteDomains,
+ paymentSettingsClick,
+ successNotice,
+} )( localize( Transfer ) );
diff --git a/client/my-sites/domains/domain-management/name-servers/custom-nameservers-form.jsx b/client/my-sites/domains/domain-management/name-servers/custom-nameservers-form.jsx
index e1ada27fe7724e..1c1d68f0b4777f 100644
--- a/client/my-sites/domains/domain-management/name-servers/custom-nameservers-form.jsx
+++ b/client/my-sites/domains/domain-management/name-servers/custom-nameservers-form.jsx
@@ -42,7 +42,7 @@ class CustomNameserversForm extends React.PureComponent {
{ translate(
'Your domain must use WordPress.com name servers for your ' +
'WordPress.com site to load & other features to be available.'
- ) }{' '}
+ ) }{ ' ' }
- { translate( 'Not sure what name servers to use?' ) }{' '}
+ { translate( 'Not sure what name servers to use?' ) }{ ' ' }
} )
);
-export default connect(
- null,
- {
- customNameServersLearnMoreClick,
- customNameServersLookUpClick,
- resetToDefaultsClick,
- saveCustomNameServersClick,
- }
-)( localize( CustomNameserversForm ) );
+export default connect( null, {
+ customNameServersLearnMoreClick,
+ customNameServersLookUpClick,
+ resetToDefaultsClick,
+ saveCustomNameServersClick,
+} )( localize( CustomNameserversForm ) );
diff --git a/client/my-sites/domains/domain-management/name-servers/custom-nameservers-row.jsx b/client/my-sites/domains/domain-management/name-servers/custom-nameservers-row.jsx
index 395b6afc9429bf..0e99fa744a9e31 100644
--- a/client/my-sites/domains/domain-management/name-servers/custom-nameservers-row.jsx
+++ b/client/my-sites/domains/domain-management/name-servers/custom-nameservers-row.jsx
@@ -98,10 +98,7 @@ const removeNameserversClick = domainName =>
} )
);
-export default connect(
- null,
- {
- customNameserverInputFocus,
- removeNameserversClick,
- }
-)( CustomNameserversRow );
+export default connect( null, {
+ customNameserverInputFocus,
+ removeNameserversClick,
+} )( CustomNameserversRow );
diff --git a/client/my-sites/domains/domain-management/name-servers/index.jsx b/client/my-sites/domains/domain-management/name-servers/index.jsx
index b099835b3f6eaa..553c43c56b5309 100644
--- a/client/my-sites/domains/domain-management/name-servers/index.jsx
+++ b/client/my-sites/domains/domain-management/name-servers/index.jsx
@@ -256,10 +256,7 @@ class NameServers extends React.Component {
}
}
-export default connect(
- null,
- {
- errorNotice,
- successNotice,
- }
-)( localize( NameServers ) );
+export default connect( null, {
+ errorNotice,
+ successNotice,
+} )( localize( NameServers ) );
diff --git a/client/my-sites/domains/domain-management/name-servers/wpcom-nameservers-toggle.jsx b/client/my-sites/domains/domain-management/name-servers/wpcom-nameservers-toggle.jsx
index b82318f5c2f26a..27aa68165c916e 100644
--- a/client/my-sites/domains/domain-management/name-servers/wpcom-nameservers-toggle.jsx
+++ b/client/my-sites/domains/domain-management/name-servers/wpcom-nameservers-toggle.jsx
@@ -118,10 +118,7 @@ const wpcomNameServersLearnMoreClick = domainName =>
)
);
-export default connect(
- null,
- {
- wpcomNameServersLearnMoreClick,
- wpcomNameServersToggleButtonClick,
- }
-)( localize( NameserversToggle ) );
+export default connect( null, {
+ wpcomNameServersLearnMoreClick,
+ wpcomNameServersToggleButtonClick,
+} )( localize( NameserversToggle ) );
diff --git a/client/my-sites/domains/domain-management/primary-domain/index.jsx b/client/my-sites/domains/domain-management/primary-domain/index.jsx
index 589f8418a34d9d..9f2af9fc367364 100644
--- a/client/my-sites/domains/domain-management/primary-domain/index.jsx
+++ b/client/my-sites/domains/domain-management/primary-domain/index.jsx
@@ -120,7 +120,7 @@ class PrimaryDomain extends React.Component {
'Your primary domain is the address ' +
'visitors will see in their browser ' +
'when visiting your site.'
- ) }{' '}
+ ) }{ ' ' }
{ translate( 'Learn More.' ) }
@@ -179,11 +179,8 @@ const updatePrimaryDomainClick = ( { name, type }, success ) =>
} )
);
-export default connect(
- null,
- {
- setPrimaryDomain,
- cancelClick,
- updatePrimaryDomainClick,
- }
-)( localize( PrimaryDomain ) );
+export default connect( null, {
+ setPrimaryDomain,
+ cancelClick,
+ updatePrimaryDomainClick,
+} )( localize( PrimaryDomain ) );
diff --git a/client/my-sites/domains/domain-management/site-redirect/index.jsx b/client/my-sites/domains/domain-management/site-redirect/index.jsx
index 9c9f4c4420f3f3..e7c65b404c303e 100644
--- a/client/my-sites/domains/domain-management/site-redirect/index.jsx
+++ b/client/my-sites/domains/domain-management/site-redirect/index.jsx
@@ -216,11 +216,8 @@ const updateSiteRedirectClick = ( domainName, location, success ) =>
} )
);
-export default connect(
- null,
- {
- cancelClick,
- locationFocus,
- updateSiteRedirectClick,
- }
-)( localize( SiteRedirect ) );
+export default connect( null, {
+ cancelClick,
+ locationFocus,
+ updateSiteRedirectClick,
+} )( localize( SiteRedirect ) );
diff --git a/client/my-sites/domains/domain-management/transfer/transfer-out/locked.jsx b/client/my-sites/domains/domain-management/transfer/transfer-out/locked.jsx
index a9bdb234381f86..215ce6a073c592 100644
--- a/client/my-sites/domains/domain-management/transfer/transfer-out/locked.jsx
+++ b/client/my-sites/domains/domain-management/transfer/transfer-out/locked.jsx
@@ -74,7 +74,7 @@ class Locked extends React.Component {
'To transfer your domain, we must unlock it and remove Privacy Protection. ' +
'Your contact information will be publicly available during the transfer period.'
)
- : translate( 'To transfer your domain, we must unlock it.' ) }{' '}
+ : translate( 'To transfer your domain, we must unlock it.' ) }{ ' ' }
{ translate( 'Learn More.' ) }
diff --git a/client/my-sites/domains/domain-management/transfer/transfer-out/unlocked.jsx b/client/my-sites/domains/domain-management/transfer/transfer-out/unlocked.jsx
index 9427a1c641654e..b8eb40003f543b 100644
--- a/client/my-sites/domains/domain-management/transfer/transfer-out/unlocked.jsx
+++ b/client/my-sites/domains/domain-management/transfer/transfer-out/unlocked.jsx
@@ -216,7 +216,7 @@ class Unlocked extends React.Component {
return (
- { translate( 'The registry for your domain requires a special process for transfers. ' ) }{' '}
+ { translate( 'The registry for your domain requires a special process for transfers. ' ) }{ ' ' }
{ sent
? translate(
'Our Happiness Engineers have been notified about ' +
diff --git a/client/my-sites/domains/domain-search/site-redirect-step.jsx b/client/my-sites/domains/domain-search/site-redirect-step.jsx
index fbf9f3a972028e..5fcd6bb41070a6 100644
--- a/client/my-sites/domains/domain-search/site-redirect-step.jsx
+++ b/client/my-sites/domains/domain-search/site-redirect-step.jsx
@@ -185,12 +185,9 @@ const recordFormSubmit = searchBoxValue =>
searchBoxValue
);
-export default connect(
- null,
- {
- errorNotice,
- recordInputFocus,
- recordGoButtonClick,
- recordFormSubmit,
- }
-)( localize( SiteRedirectStep ) );
+export default connect( null, {
+ errorNotice,
+ recordInputFocus,
+ recordGoButtonClick,
+ recordFormSubmit,
+} )( localize( SiteRedirectStep ) );
diff --git a/client/my-sites/domains/map-domain/index.jsx b/client/my-sites/domains/map-domain/index.jsx
index 109f709f33e674..d3c852193f33cb 100644
--- a/client/my-sites/domains/map-domain/index.jsx
+++ b/client/my-sites/domains/map-domain/index.jsx
@@ -100,12 +100,10 @@ export class MapDomain extends Component {
// We don't go through the usual checkout process
// Instead, we add the mapping directly
if ( selectedSite.is_vip ) {
- wpcom
- .addVipDomainMapping( selectedSite.ID, domain )
- .then(
- () => page( domainManagementList( selectedSiteSlug ) ),
- error => this.setState( { errorMessage: error.message } )
- );
+ wpcom.addVipDomainMapping( selectedSite.ID, domain ).then(
+ () => page( domainManagementList( selectedSiteSlug ) ),
+ error => this.setState( { errorMessage: error.message } )
+ );
return;
}
diff --git a/client/my-sites/earn/ads/wrapper.jsx b/client/my-sites/earn/ads/wrapper.jsx
index 94c081f5f84156..d7d604a3a43e00 100644
--- a/client/my-sites/earn/ads/wrapper.jsx
+++ b/client/my-sites/earn/ads/wrapper.jsx
@@ -294,8 +294,4 @@ const mergeProps = ( stateProps, dispatchProps, parentProps ) => ( {
...stateProps,
} );
-export default connect(
- mapStateToProps,
- mapDispatchToProps,
- mergeProps
-)( localize( AdsWrapper ) );
+export default connect( mapStateToProps, mapDispatchToProps, mergeProps )( localize( AdsWrapper ) );
diff --git a/client/my-sites/earn/memberships/index.jsx b/client/my-sites/earn/memberships/index.jsx
index fc8b2943d12fab..859e7ad26408b9 100644
--- a/client/my-sites/earn/memberships/index.jsx
+++ b/client/my-sites/earn/memberships/index.jsx
@@ -202,9 +202,11 @@ class MembershipsSection extends Component {
{ this.props.translate(
'Start collecting subscription payments! Recurring Payments is a feature inside the block editor. When editing a post or a page you can insert a button that will allow you to collect paying subscribers.'
- ) }{' '}
+ ) }{ ' ' }
- { translate( 'Total posts with comment followers:' ) }{' '}
+ { translate( 'Total posts with comment followers:' ) }{ ' ' }
{ numberFormat( commentFollowersTotal ) }
- { this.props.translate( 'Average comments per month:' ) }{' '}
+ { this.props.translate( 'Average comments per month:' ) }{ ' ' }
{ this.props.numberFormat( data.monthly_comments ) }
- { translate( 'Total WordPress.com Followers' ) }:{' '}
+ { translate( 'Total WordPress.com Followers' ) }:{ ' ' }
{ numberFormat( wpcomData.total_wpcom ) }
- { translate( 'Total Email Followers' ) }:{' '}
+ { translate( 'Total Email Followers' ) }:{ ' ' }
{ numberFormat( emailData.total_email ) }
diff --git a/packages/load-script/src/index.js b/packages/load-script/src/index.js
index 8de7dc90d4c3fd..c495c5c8b1ce61 100644
--- a/packages/load-script/src/index.js
+++ b/packages/load-script/src/index.js
@@ -68,7 +68,10 @@ export function loadjQueryDependentScript( url, callback ) {
// if callback is provided, call it on resolution
if ( typeof callback === 'function' ) {
- loadPromise.then( () => callback( null ), error => callback( error ) );
+ loadPromise.then(
+ () => callback( null ),
+ error => callback( error )
+ );
return;
}
diff --git a/packages/load-script/test/callback-handler.js b/packages/load-script/test/callback-handler.js
index 4d236bbf64211f..590da0508ae434 100644
--- a/packages/load-script/test/callback-handler.js
+++ b/packages/load-script/test/callback-handler.js
@@ -147,7 +147,10 @@ describe( 'loadScript/callback-handler', () => {
addScriptCallback( url2, callback );
expect( callbacks ).toEqual(
- new Map( [ [ url1, new Set( [ callback ] ) ], [ url2, new Set( [ callback ] ) ] ] )
+ new Map( [
+ [ url1, new Set( [ callback ] ) ],
+ [ url2, new Set( [ callback ] ) ],
+ ] )
);
removeScriptCallbacks( url1 );
diff --git a/packages/tree-select/test/index.js b/packages/tree-select/test/index.js
index 0f677b3a5b14f3..9ce6762fdf3f1e 100644
--- a/packages/tree-select/test/index.js
+++ b/packages/tree-select/test/index.js
@@ -222,7 +222,10 @@ describe( 'index', () => {
} );
test( 'should memoize a nullish value returned by getDependents', () => {
- const memoizedSelector = treeSelect( () => [ null, undefined ], () => [] );
+ const memoizedSelector = treeSelect(
+ () => [ null, undefined ],
+ () => []
+ );
const state = {};
const firstResult = memoizedSelector( state );
@@ -232,7 +235,10 @@ describe( 'index', () => {
test( 'throws on a non-nullish primitive value returned by getDependents', () => {
[ true, 1, 'a', false, '', 0 ].forEach( primitive => {
- const memoizedSelector = treeSelect( () => [ primitive ], () => [] );
+ const memoizedSelector = treeSelect(
+ () => [ primitive ],
+ () => []
+ );
const state = {};
expect( () => memoizedSelector( state ) ).toThrow();
diff --git a/server/isomorphic-routing/index.js b/server/isomorphic-routing/index.js
index efdb88b6522317..737f3fc88ccbf0 100644
--- a/server/isomorphic-routing/index.js
+++ b/server/isomorphic-routing/index.js
@@ -92,7 +92,10 @@ function applyMiddlewares( context, expressNext, ...middlewares ) {
}
function compose( ...functions ) {
- return functions.reduceRight( ( composed, f ) => () => f( composed ), () => {} );
+ return functions.reduceRight(
+ ( composed, f ) => () => f( composed ),
+ () => {}
+ );
}
export function getNormalizedPath( pathname, query ) {
{ '
component.