Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix all max-len eslint warnings #5296

Merged
merged 2 commits into from Jul 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions imports/plugins/core/accounts/client/components/login.js
Expand Up @@ -60,7 +60,8 @@ class Login extends Component {
const currentRoute = Router.current().route;
const isOauthFlow = currentRoute.options && currentRoute.options.meta && currentRoute.options.meta.oauthLoginFlow;
const idpFormClass = isOauthFlow ? "idp-form" : "";
if (this.state.currentView === "loginFormSignInView" || this.state.currentView === "loginFormSignUpView" || this.state.currentView === "loginFormUpdatePasswordView") {
const { currentView } = this.state;
if (currentView === "loginFormSignInView" || currentView === "loginFormSignUpView" || currentView === "loginFormUpdatePasswordView") {
if (isOauthFlow) {
return (
<Components.OAuthFormContainer
Expand All @@ -74,24 +75,26 @@ class Login extends Component {
<Components.AuthContainer
credentials={this.props.credentials}
uniqueId={this.props.uniqueId}
currentView={this.state.currentView}
currentView={currentView}
onForgotPasswordClick={this.showForgotPasswordView}
onSignUpClick={this.showSignUpView}
onSignInClick={this.showSignInView}
/>
);
} else if (this.state.currentView === "loginFormResetPasswordView") {
} else if (currentView === "loginFormResetPasswordView") {
return (
<div className={idpFormClass}>
<Components.ForgotPassword
credentials={this.props.credentials}
uniqueId={this.props.uniqueId}
currentView={this.state.currentView}
currentView={currentView}
onSignInClick={this.showSignInView}
/>
</div>
);
}

return null;
}
}

Expand Down
Expand Up @@ -28,7 +28,8 @@ function OperatorLanding() {
</Grid>
<Grid item>
<Typography align="center" variant="body2">
Use the Operator UI to manage <Link to="/operator/orders">Orders</Link>, <Link to="/operator/products">Products</Link>, <Link to="/operator/tags">Tags</Link>, <Link to="/operator/accounts">Accounts</Link>, and <Link to="/operator/navigation">Navigation</Link>, or change shop settings.
{/* eslint-disable-next-line max-len */}
Use the Operator UI to manage <Link to="/operator/orders">Orders</Link>, <Link to="/operator/products">Products</Link>, <Link to="/operator/tags">Tags</Link>, <Link to="/operator/accounts">Accounts</Link>, and <Link to="/operator/navigation">Navigation</Link>, or change shop settings.
</Typography>
</Grid>
<Grid item>
Expand Down
Expand Up @@ -108,7 +108,12 @@ class ShopLogoUrls extends Component {
<TextInput
id="primaryShopLogoUrlInput"
name="primaryShopLogoUrl"
placeholder={i18next.t("shopSettings.shopLogoUrls.primaryShopLogoUrlDescription", "This is the primary shop logo, which is used wherever you see a logo throughout the UI")}
placeholder={
i18next.t(
"shopSettings.shopLogoUrls.primaryShopLogoUrlDescription",
"This is the primary shop logo, which is used wherever you see a logo throughout the UI"
)
}
value={primaryShopLogoUrl || ""}
/>
<ErrorsBlock names={["primaryShopLogoUrl"]} />
Expand Down
Expand Up @@ -223,7 +223,9 @@ class NavigationItemForm extends Component {
</ConfirmDialog>
)}
<Button className={classes.formActionButton} color="primary" onClick={onCloseForm} variant="outlined">{i18next.t("app.cancel")}</Button>
<Button className={classes.formActionButton} color="primary" onClick={this.handleClickSave} variant="contained">{i18next.t("app.saveChanges")}</Button>
<Button className={classes.formActionButton} color="primary" onClick={this.handleClickSave} variant="contained">
{i18next.t("app.saveChanges")}
</Button>
</Grid>
</Grid>
</Fragment>
Expand Down
Expand Up @@ -102,7 +102,9 @@ class OrderCardHeader extends Component {
</Button>
</Grid>
<Grid className={classes.openSidebarButton} item>
<DetailDrawerButton color="primary" size="small" variant="outlined">{i18next.t("orderCard.orderSummary.showOrderSummary", "Show order summary")}</DetailDrawerButton>
<DetailDrawerButton color="primary" size="small" variant="outlined">
{i18next.t("orderCard.orderSummary.showOrderSummary", "Show order summary")}
</DetailDrawerButton>
</Grid>
</Grid>
</Grid>
Expand Down
Expand Up @@ -61,7 +61,12 @@ export default class GeneralTaxSettings extends Component {
<div className="clearfix">
<Form ref={(formRef) => { this.form = formRef; }} onSubmit={onSubmit} validator={validator} value={settingsDoc}>
<Field name="primaryTaxServiceName" label={i18next.t("admin.taxSettings.primaryTaxServiceName")} labelFor={primaryTaxServiceNameInputId}>
<Select id={primaryTaxServiceNameInputId} name="primaryTaxServiceName" options={this.taxServicesOptions} placeholder={i18next.t("admin.taxSettings.primaryTaxServiceNamePlaceholder")} />
<Select
id={primaryTaxServiceNameInputId}
name="primaryTaxServiceName"
options={this.taxServicesOptions}
placeholder={i18next.t("admin.taxSettings.primaryTaxServiceNamePlaceholder")}
/>
<ErrorsBlock names={["primaryTaxServiceName"]} />
</Field>
<Field name="fallbackTaxServiceName" label={i18next.t("admin.taxSettings.fallbackTaxServiceName")} labelFor={fallbackTaxServiceNameInputId}>
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
export default `
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down
Expand Up @@ -5,5 +5,7 @@ import getSurchargeMessageForLanguage from "../../util/getSurchargeMessageForLan
export default {
_id: (node) => encodeSurchargeOpaqueId(node._id),
amount: (node, _, context) => node.amount && xformSurchargeAmount(context, node.shopId, node.amount),
message: (node, { language }) => node.messagesByLanguage && node.messagesByLanguage.length && getSurchargeMessageForLanguage(language, node.messagesByLanguage)
message: (node, { language }) => node.messagesByLanguage &&
node.messagesByLanguage.length &&
getSurchargeMessageForLanguage(language, node.messagesByLanguage)
};
Expand Up @@ -8,6 +8,8 @@ export default {
_id: (node) => encodeSurchargeOpaqueId(node._id),
shopId: (node) => encodeShopOpaqueId(node.shopId),
amount: (node, _, context) => node.amount && xformSurchargeAmount(context, node.shopId, node.amount),
message: (node, { language }) => node.messagesByLanguage && node.messagesByLanguage.length && getSurchargeMessageForLanguage(language, node.messagesByLanguage),
message: (node, { language }) => node.messagesByLanguage &&
node.messagesByLanguage.length &&
getSurchargeMessageForLanguage(language, node.messagesByLanguage),
methodIds: (node) => node.methodIds.map(encodeFulfillmentMethodOpaqueId)
};