Skip to content

Commit f992424

Browse files
committed
chore: fix lint
Signed-off-by: Eric Dobbertin <[email protected]>
1 parent ab85e0a commit f992424

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727
"test:file": "NODE_ENV=jesttest jest --watch --no-coverage"
2828
},
2929
"eslintConfig": {
30-
"extends": [
31-
"@reactioncommerce"
32-
]
30+
"extends": "@reactioncommerce",
31+
"settings": {
32+
"react": {
33+
"version": "detect"
34+
}
35+
}
3336
},
3437
"dependencies": {
3538
"@material-ui/core": "~3.9.2",

src/containers/address/withAddressBook.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import {
1111
removeAccountAddressBookEntry
1212
} from "./mutations.gql";
1313

14+
/**
15+
* @summary HOC that adds address book props
16+
* @param {React.Component} Comp React Component to wrap
17+
* @return {React.Component} Wrapped component
18+
*/
1419
export default function withAddressBook(Comp) {
1520
@withApollo
1621
@inject("authStore")
@@ -110,7 +115,7 @@ export default function withAddressBook(Comp) {
110115
handleRemoveAccountAddressBookEntry = (addressId) => {
111116
const { client: apolloClient } = this.props;
112117

113-
if (!confirm("Delete this address?")) {
118+
if (!confirm("Delete this address?")) { // eslint-disable-line no-alert
114119
return;
115120
}
116121

src/lib/apollo/withApolloClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function withApolloClient(WrappedComponent) {
9898

9999
static getDerivedStateFromProps(nextProps) {
100100
const { pathname, query, route } = nextProps.router;
101-
const { requestPath, hasRequestObject } = nextProps;
101+
const { requestPath, hasRequestObject } = nextProps; // eslint-disable-line react/prop-types
102102

103103
// Update routing store with pathname and query after route change
104104
rootMobxStores.routingStore.updateRoute({ pathname, query, route });

src/lib/utils/withLocales.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react/display-name, react/no-multi-comp */
2+
13
import React, { Component } from "react";
24
import PropTypes from "prop-types";
35
import { inject, observer } from "mobx-react";

0 commit comments

Comments
 (0)