Interactive interface for browsing global, full-resolution satellite imagery
fix `no-useless-concat` errors
Jason Kent46dcdf5c47a4
diff --git a/.eslintrc b/.eslintrcindex 832b1a268..326f26d75 100644--- a/.eslintrc+++ b/.eslintrc@@ -83,7 +83,6 @@"prefer-destructuring": "warn","no-restricted-syntax": "off",- "no-useless-concat": "off","class-methods-use-this": "off","max-len": "off","no-restricted-properties": "off",@@ -126,7 +125,7 @@"react/no-unused-prop-types": "warn", // 66 errors"react/forbid-prop-types": "off", // 216 errors"react/require-default-props": "off", // 965 errors- "react/destructuring-assignment": "off" // 464 errors+ "react/destructuring-assignment": "off" // 464 errors (Set to warn)}}]diff --git a/web/js/components/animation-widget/gif-panel-grid.js b/web/js/components/animation-widget/gif-panel-grid.jsindex fea8b93c7..e9f3a9896 100644--- a/web/js/components/animation-widget/gif-panel-grid.js+++ b/web/js/components/animation-widget/gif-panel-grid.js@@ -19,7 +19,7 @@ export class GifPanelGrid extends React.Component {return (<div id="gif-size" className="gif-size gif-size-invalid grid-child"><FontAwesomeIcon icon={faTimes} fixedWidth />- <span>{`${this.props.maxGifSize} MB` + `~${roundedSize} MB`}</span>+ <span>{`${this.props.maxGifSize} MB ~${roundedSize} MB`}</span></div>);}diff --git a/web/js/containers/map-interactions.js b/web/js/containers/map-interactions.jsindex e492bcdf4..e84829cca 100644--- a/web/js/containers/map-interactions.js+++ b/web/js/containers/map-interactions.js@@ -78,7 +78,7 @@ export class MapInteractions extends React.Component {render() {const { isShowingClick, mouseEvents } = this.props;- const mapClasses = isShowingClick ? 'wv-map' + ' cursor-pointer' : 'wv-map';+ const mapClasses = isShowingClick ? 'wv-map cursor-pointer' : 'wv-map';return (<>diff --git a/web/js/containers/sidebar/layer.js b/web/js/containers/sidebar/layer.jsindex 863f5e74d..cd56a5192 100644--- a/web/js/containers/sidebar/layer.js+++ b/web/js/containers/sidebar/layer.js@@ -353,7 +353,7 @@ const mapDispatchToProps = (dispatch) => ({dispatch(removeLayer(id));},onOptionsClick: (layer, title) => {- const key = `${'LAYER_OPTIONS_MODAL' + '-'}${layer.id}`;+ const key = `LAYER_OPTIONS_MODAL-${layer.id}`;googleTagManager.pushEvent({event: 'sidebar_layer_options',});@@ -374,7 +374,7 @@ const mapDispatchToProps = (dispatch) => ({);},onInfoClick: (layer, title) => {- const key = `${'LAYER_INFO_MODAL' + '-'}${layer.id}`;+ const key = `LAYER_INFO_MODAL-${layer.id}`;googleTagManager.pushEvent({event: 'sidebar_layer_info',});diff --git a/web/js/map/data/results.js b/web/js/map/data/results.jsindex 0fb565d4c..aa1dd69b6 100644--- a/web/js/map/data/results.js+++ b/web/js/map/data/results.js@@ -513,7 +513,7 @@ export function dataResultsModisGridLabel() {self.name = 'MODISGridLabel';self.process = function(meta, granule) {- granule.label = `h${granule.h} - ` + `v${granule.v}`;+ granule.label = `h${granule.h} - v${granule.v}`;const timeStart = util.parseTimestampUTC(granule.time_start);const date = util.toISOStringDate(timeStart);diff --git a/web/js/map/data/ui.js b/web/js/map/data/ui.jsindex 816480909..4640d25d9 100644--- a/web/js/map/data/ui.js+++ b/web/js/map/data/ui.js@@ -271,7 +271,7 @@ export function dataUi(store, ui, config) {if (status !== 'abort') {console.error('Unable to search', status, error);wvui.notify(- 'Unable to search at this time.<br/><br/>Please try ' + 'again later.',+ 'Unable to search at this time.<br/><br/>Please try again later.',);}};@@ -391,7 +391,7 @@ const dataUiBulkDownloadPage = (function() {const hostnames = [];$.each(hosts, (host) => {netrcEntries.push(- `machine ${host} login URS_USER ` + 'password URS_PASSWORD',+ `machine ${host} login URS_USER password URS_PASSWORD`,);hostnames.push(host);});diff --git a/web/js/map/natural-events/track.js b/web/js/map/natural-events/track.jsindex be2bdf018..2d8933539 100644--- a/web/js/map/natural-events/track.js+++ b/web/js/map/natural-events/track.js@@ -477,7 +477,7 @@ const createArrows = function(lineSegmentCoords, map) {overlayEl.style.height = '1px';innerEl.style.width = `${lengthOfArrowDiv}px`;innerEl.style.height = '16px';- innerEl.style.transform = `translate(${-(lengthOfArrowDiv / 2)}px` + ', -8px)';+ innerEl.style.transform = `translate(${-(lengthOfArrowDiv / 2)}px, -8px)`;overlayEl.style.transform = `rotate(${angleDegrees}deg)`;return new OlOverlay({position: map.getCoordinateFromPixel(pixelMidPoint),