diff --git a/package.json b/package.json index 3ba3748d..b60c5f03 100644 --- a/package.json +++ b/package.json @@ -39,5 +39,8 @@ "not dead", "not ie <= 11", "not op_mini all" - ] + ], + "eslintConfig": { + "extends": "react-app" + } } diff --git a/src/DownloadLink.js b/src/DownloadLink.js index aa06695c..81659950 100644 --- a/src/DownloadLink.js +++ b/src/DownloadLink.js @@ -50,6 +50,11 @@ export default class DownloadLink extends React.Component { } render() { - return ; + return ( + + {/* We have to explicitly set the children to make ESLint happy */} + {this.props.children} + + ); } } diff --git a/src/FocusedSkin.js b/src/FocusedSkin.js index 8797697f..ebd6b722 100644 --- a/src/FocusedSkin.js +++ b/src/FocusedSkin.js @@ -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"; diff --git a/src/redux/epics.js b/src/redux/epics.js index 84f02b36..08b727db 100644 --- a/src/redux/epics.js +++ b/src/redux/epics.js @@ -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);