Fix lint errors

This commit is contained in:
Jordan Eldredge 2018-12-22 11:02:34 -08:00
parent 1087cba99e
commit 5a8e7fe557
4 changed files with 13 additions and 5 deletions

View file

@ -39,5 +39,8 @@
"not dead",
"not ie <= 11",
"not op_mini all"
]
],
"eslintConfig": {
"extends": "react-app"
}
}

View file

@ -50,6 +50,11 @@ export default class DownloadLink extends React.Component {
}
render() {
return <a {...this.props} href={this.state.href || this.props.href} />;
return (
<a {...this.props} href={this.state.href || this.props.href}>
{/* We have to explicitly set the children to make ESLint happy */}
{this.props.children}
</a>
);
}
}

View file

@ -1,7 +1,7 @@
import React from "react";
import { connect } from "react-redux";
import WebampComponent from "./WebampComponent";
import Readme from "./Readme";
// import Readme from "./Readme";
import DownloadLink from "./DownloadLink";
import * as Utils from "./utils";
import * as Selectors from "./redux/selectors";

View file

@ -3,14 +3,14 @@ import { of, from, empty } from "rxjs";
import * as Actions from "./actionCreators";
import * as Selectors from "./selectors";
import * as Utils from "../utils";
import { filter, switchMap, map, tap } from "rxjs/operators";
import { filter, switchMap, map } from "rxjs/operators";
import { search } from "../algolia";
const urlChangedEpic = actions =>
actions.pipe(
filter(action => action.type === "URL_CHANGED"),
switchMap(action => {
if (action.location.pathname == "/about/") {
if (action.location.pathname === "/about/") {
return of(Actions.requestedAboutPage());
}
const params = new URLSearchParams(action.location.search);