Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps committed Aug 9, 2023
1 parent 30a612c commit 48e31d1
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion web/js/components/animation-widget/gif-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { UncontrolledTooltip } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import {
cloneDeep as lodashCloneDeep,
filter as lodashFilter,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import GifContainer from '../../containers/gif';
import {
toggleComponentGifActive,
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/animation-widget/gif-post-creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { capitalize as lodashCapitalize } from 'lodash';
import FileSaver from 'file-saver';
import googleTagManager from 'googleTagManager';
import { Modal, ModalBody, ModalHeader } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import util from '../../util/util';
import Button from '../util/button';
import MonospaceDate from '../util/monospace-date';
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/location-search/location-search-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
debounce as lodashDebounce,
get as lodashGet,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import googleTagManager from 'googleTagManager';
import SearchBox from './location-search-input';
import Alert from '../util/alert';
import HoverTooltip from '../util/hover-tooltip';
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/measure-tool/measure-button.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Button, UncontrolledTooltip } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import googleTagManager from 'googleTagManager';
import MeasureMenu from './measure-menu';
import { openCustomContent } from '../../modules/modal/actions';
import AlertUtil from '../util/alert';
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/sidebar/event.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useLayoutEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import lodashFind from 'lodash/find';
import googleTagManager from 'googleTagManager';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import googleTagManager from 'googleTagManager';
import { getDefaultEventDate } from '../../modules/natural-events/util';
import util from '../../util/util';
import EventIcon from './event-icon';
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/sidebar/events-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, UncontrolledTooltip } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import moment from 'moment';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { createPortal } from 'react-dom';
import googleTagManager from 'googleTagManager';
import Switch from '../util/switch';
import Checkbox from '../util/checkbox';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { connect } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { UncontrolledTooltip } from 'reactstrap';
import moment from 'moment';
import googleTagManager from 'googleTagManager';
import {
isEqual as lodashIsEqual,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import { timeScaleOptions } from '../../../modules/date/constants';
import {
filterProjLayersWithStartDate,
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import googleTagManager from 'googleTagManager';
import { getPermalink } from '../modules/link/util';
import { getSelectedDate } from '../modules/date/selectors';
import HoverTooltip from '../components/util/hover-tooltip';
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/share.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import googleTagManager from 'googleTagManager';
import copy from 'copy-to-clipboard';
import {
startCase as lodashStartCase,
Expand All @@ -13,6 +12,7 @@ import {
Nav, NavItem, NavLink,
TabContent, TabPane,
} from 'reactstrap';
import googleTagManager from 'googleTagManager';
import ShareLinks from '../components/toolbar/share/links';
import ShareToolTips from '../components/toolbar/share/tooltips';
import {
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/sidebar/footer-content.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';
import googleTagManager from 'googleTagManager';
import { connect } from 'react-redux';
import {
UncontrolledTooltip,
} from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { isMobileOnly, isTablet } from 'react-device-detect';
import googleTagManager from 'googleTagManager';
import Button from '../../components/util/button';
import ModeSelection from '../../components/sidebar/mode-selection';
import { toggleCompareOnOff, changeMode } from '../../modules/compare/actions';
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/sidebar/layer-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { Draggable } from 'react-beautiful-dnd';
import { isEmpty as lodashIsEmpty, get as lodashGet } from 'lodash';
import googleTagManager from 'googleTagManager';
import { connect } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
UncontrolledTooltip, Dropdown, DropdownToggle, DropdownMenu, DropdownItem,
} from 'reactstrap';
import googleTagManager from 'googleTagManager';
import PaletteLegend from '../../components/sidebar/paletteLegend';
import util from '../../util/util';
import {
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/sidebar/smart-handoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as olProj from 'ol/proj';
import { isEqual as lodashEqual } from 'lodash';
import googleTagManager from 'googleTagManager';
import moment from 'moment';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Spinner, UncontrolledTooltip } from 'reactstrap';
import googleTagManager from 'googleTagManager';
import Button from '../../components/util/button';
import Checkbox from '../../components/util/checkbox';
import Crop from '../../components/util/image-crop';
Expand Down
2 changes: 1 addition & 1 deletion web/js/containers/timeline/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import moment from 'moment';
import googleTagManager from 'googleTagManager';
import { UncontrolledTooltip } from 'reactstrap';
import {
debounce as lodashDebounce,
throttle as lodashThrottle,
get as lodashGet,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import ErrorBoundary from '../error-boundary';
import MobileDatePicker from '../../components/timeline/mobile-date-picker';
import TimelineAxis from '../../components/timeline/timeline-axis/timeline-axis';
Expand Down
4 changes: 2 additions & 2 deletions web/js/containers/tour.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import googleTagManager from 'googleTagManager';
import update from 'immutability-helper';
import {
findIndex as lodashFindIndex,
get as lodashGet,
uniqBy,
isEmpty as lodashIsEmpty,
} from 'lodash';
import update from 'immutability-helper';
import googleTagManager from 'googleTagManager';

import JoyrideWrapper from '../components/tour/joyride-wrapper';
import TourStart from '../components/tour/modal-tour-start';
Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/layers/actions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
findIndex as lodashFindIndex,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import update from 'immutability-helper';
import googleTagManager from 'googleTagManager';
import {
addLayer as addLayerSelector,
getLayers as getLayersSelector,
Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/layers/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
isEqual as lodashIsEqual,
} from 'lodash';
import moment from 'moment';
import googleTagManager from 'googleTagManager';
import update from 'immutability-helper';
import googleTagManager from 'googleTagManager';
import {
addLayer,
getStartingLayers,
Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/link/actions.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TextEncoder, TextDecoder } from 'util';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import fetchMock from 'fetch-mock';
import { TextEncoder, TextDecoder } from 'util';
import * as actions from './actions';
import * as constants from './constants';

Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/modal/actions.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TextEncoder, TextDecoder } from 'util';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import fetchMock from 'fetch-mock';
import { TextEncoder, TextDecoder } from 'util';
import {
openBasicContent,
openCustomContent,
Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/notifications/actions.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TextEncoder, TextDecoder } from 'util';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import fetchMock from 'fetch-mock';
import { TextEncoder, TextDecoder } from 'util';
import * as actions from './actions';
import * as constants from './constants';

Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/palettes/actions.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { TextEncoder, TextDecoder } from 'util';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import fetchMock from 'fetch-mock';
import { assign, cloneDeep } from 'lodash';
import update from 'immutability-helper';
import { TextEncoder, TextDecoder } from 'util';
import {
requestPalette,
setThresholdRangeAndSquash,
Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/product-picker/reducers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import googleTagManager from 'googleTagManager';
import { get as lodashGet } from 'lodash';
import googleTagManager from 'googleTagManager';

import {
SAVE_SEARCH_STATE,
Expand Down
4 changes: 2 additions & 2 deletions web/js/modules/smart-handoff/util.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import { get } from 'lodash';
import googleTagManager from 'googleTagManager';
import { parseTemplate } from 'url-template';
import moment from 'moment';
import { parseTemplate } from 'url-template';
import googleTagManager from 'googleTagManager';

import { TOOLS_EARTHDATA_SEARCH } from './constants';

Expand Down
2 changes: 1 addition & 1 deletion web/js/modules/tour/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import googleTagManager from 'googleTagManager';
import update from 'immutability-helper';
import googleTagManager from 'googleTagManager';
import safeLocalStorage from '../../util/local-storage';

const { HIDE_TOUR } = safeLocalStorage.keys;
Expand Down

0 comments on commit 48e31d1

Please sign in to comment.