diff --git a/.eslintrc.js b/.eslintrc.js index bcf86e3b0..4748f627c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -48,6 +48,7 @@ module.exports = { 'global-require': 'error', 'guard-for-in': 'error', 'implicit-arrow-linebreak': 'error', + 'import/extensions': ['error', 'never', { 'json': 'always' }], 'no-case-declarations': 'error', 'no-constant-condition': 'error', 'no-dupe-else-if': 'error', diff --git a/app/scripts/background.js b/app/scripts/background.js index 0ff4c1775..c890441c9 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -26,7 +26,7 @@ import Migrator from './lib/migrator' import migrations from './migrations' import PortStream from 'extension-port-stream' import createStreamSink from './lib/createStreamSink' -import NotificationManager from './lib/notification-manager.js' +import NotificationManager from './lib/notification-manager' import MetamaskController from './metamask-controller' import rawFirstTimeState from './first-time-state' import setupSentry from './lib/setupSentry' diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 71b228a11..24c5a1edb 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -16,7 +16,7 @@ import { SEND_ETHER_ACTION_KEY, DEPLOY_CONTRACT_ACTION_KEY, CONTRACT_INTERACTION_KEY, -} from '../../../../ui/app/helpers/constants/transactions.js' +} from '../../../../ui/app/helpers/constants/transactions' import TransactionStateManager from './tx-state-manager' import TxGasUtil from './tx-gas-utils' diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index c7c92face..3cb837373 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -35,7 +35,7 @@ import LocalMessageDuplexStream from 'post-message-stream' import { initProvider } from '@metamask/inpage-provider' // TODO:deprecate:2020 -import setupWeb3 from './lib/setupWeb3.js' +import setupWeb3 from './lib/setupWeb3' restoreContextAfterImports() diff --git a/app/scripts/lib/ens-ipfs/setup.js b/app/scripts/lib/ens-ipfs/setup.js index d1fc42674..e543a2d66 100644 --- a/app/scripts/lib/ens-ipfs/setup.js +++ b/app/scripts/lib/ens-ipfs/setup.js @@ -1,6 +1,6 @@ import urlUtil from 'url' import extension from 'extensionizer' -import resolveEnsToIpfsContentId from './resolver.js' +import resolveEnsToIpfsContentId from './resolver' const supportedTopLevelDomains = ['eth'] diff --git a/app/scripts/lib/setupWeb3.js b/app/scripts/lib/setupWeb3.js index da5d8d422..b795d2921 100644 --- a/app/scripts/lib/setupWeb3.js +++ b/app/scripts/lib/setupWeb3.js @@ -3,7 +3,7 @@ // TODO:deprecate:2020 // Delete this file -import 'web3/dist/web3.min.js' +import 'web3/dist/web3.min' const shouldLogUsage = !([ 'docs.metamask.io', diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 4cfcf38d6..dcf552434 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -24,7 +24,7 @@ import createOriginMiddleware from './lib/createOriginMiddleware' import createTabIdMiddleware from './lib/createTabIdMiddleware' import createOnboardingMiddleware from './lib/createOnboardingMiddleware' import providerAsMiddleware from 'eth-json-rpc-middleware/providerAsMiddleware' -import { setupMultiplex } from './lib/stream-utils.js' +import { setupMultiplex } from './lib/stream-utils' import KeyringController from 'eth-keyring-controller' import EnsController from './controllers/ens' import NetworkController from './controllers/network' diff --git a/app/scripts/phishing-detect.js b/app/scripts/phishing-detect.js index f0ab55d00..f3333fb5e 100644 --- a/app/scripts/phishing-detect.js +++ b/app/scripts/phishing-detect.js @@ -3,7 +3,7 @@ import dnode from 'dnode' import { EventEmitter } from 'events' import PortStream from 'extension-port-stream' import extension from 'extensionizer' -import { setupMultiplex } from './lib/stream-utils.js' +import { setupMultiplex } from './lib/stream-utils' import { getEnvironmentType } from './lib/util' import ExtensionPlatform from './platforms/extension' diff --git a/app/scripts/ui.js b/app/scripts/ui.js index decb002cf..ab05303ef 100644 --- a/app/scripts/ui.js +++ b/app/scripts/ui.js @@ -24,7 +24,7 @@ import Eth from 'ethjs' import EthQuery from 'eth-query' import launchMetaMaskUi from '../../ui' import StreamProvider from 'web3-stream-provider' -import { setupMultiplex } from './lib/stream-utils.js' +import { setupMultiplex } from './lib/stream-utils' import log from 'loglevel' start().catch(log.error) diff --git a/test/unit/app/controllers/transactions/tx-controller-test.js b/test/unit/app/controllers/transactions/tx-controller-test.js index e9d229aba..7c559172a 100644 --- a/test/unit/app/controllers/transactions/tx-controller-test.js +++ b/test/unit/app/controllers/transactions/tx-controller-test.js @@ -13,7 +13,7 @@ import { SEND_ETHER_ACTION_KEY, DEPLOY_CONTRACT_ACTION_KEY, CONTRACT_INTERACTION_KEY, -} from '../../../../../ui/app/helpers/constants/transactions.js' +} from '../../../../../ui/app/helpers/constants/transactions' import { createTestProviderTools, getTestAccounts } from '../../../../stub/provider' diff --git a/test/unit/migrations/030-test.js b/test/unit/migrations/030-test.js index f575e4bcb..6d0271f0d 100644 --- a/test/unit/migrations/030-test.js +++ b/test/unit/migrations/030-test.js @@ -1,5 +1,5 @@ import assert from 'assert' -import migrationTemplate from '../../../app/scripts/migrations/030.js' +import migrationTemplate from '../../../app/scripts/migrations/030' const storage = { meta: {}, diff --git a/ui/app/components/app/asset-list/index.js b/ui/app/components/app/asset-list/index.js index 49abc01fd..47ee5ce9f 100644 --- a/ui/app/components/app/asset-list/index.js +++ b/ui/app/components/app/asset-list/index.js @@ -1 +1 @@ -export { default } from './asset-list.js' +export { default } from './asset-list' diff --git a/ui/app/components/app/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js b/ui/app/components/app/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js index 3c8c28612..32e7a2c1d 100644 --- a/ui/app/components/app/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js +++ b/ui/app/components/app/confirm-page-container/confirm-detail-row/tests/confirm-detail-row.component.test.js @@ -1,7 +1,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' -import ConfirmDetailRow from '../confirm-detail-row.component.js' +import ConfirmDetailRow from '../confirm-detail-row.component' import sinon from 'sinon' const propsMethodSpies = { diff --git a/ui/app/components/app/dropdowns/tests/dropdown.test.js b/ui/app/components/app/dropdowns/tests/dropdown.test.js index b32d1327f..3cb5c6005 100644 --- a/ui/app/components/app/dropdowns/tests/dropdown.test.js +++ b/ui/app/components/app/dropdowns/tests/dropdown.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import sinon from 'sinon' import { shallow } from 'enzyme' -import { DropdownMenuItem } from '../components/dropdown.js' +import { DropdownMenuItem } from '../components/dropdown' describe('Dropdown', function () { let wrapper diff --git a/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js b/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js index 303224d5e..caa4d1abc 100644 --- a/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js +++ b/ui/app/components/app/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import shallow from '../../../../../../../lib/shallow-with-context' import sinon from 'sinon' -import AdvancedTabContent from '../advanced-tab-content.component.js' +import AdvancedTabContent from '../advanced-tab-content.component' import GasPriceChart from '../../../gas-price-chart' import Loading from '../../../../../ui/loading-screen' diff --git a/ui/app/components/app/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js b/ui/app/components/app/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js index 473a651ce..8557fb2ec 100644 --- a/ui/app/components/app/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js +++ b/ui/app/components/app/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import shallow from '../../../../../../lib/shallow-with-context' import sinon from 'sinon' -import GasModalPageContainer from '../gas-modal-page-container.component.js' +import GasModalPageContainer from '../gas-modal-page-container.component' import timeout from '../../../../../../lib/test-timeout' import PageContainer from '../../../../ui/page-container' diff --git a/ui/app/components/app/gas-customization/gas-price-chart/gas-price-chart.component.js b/ui/app/components/app/gas-customization/gas-price-chart/gas-price-chart.component.js index 03aa53a9d..ef5f9e074 100644 --- a/ui/app/components/app/gas-customization/gas-price-chart/gas-price-chart.component.js +++ b/ui/app/components/app/gas-customization/gas-price-chart/gas-price-chart.component.js @@ -8,7 +8,7 @@ import { hideDataUI, setTickPosition, handleMouseMove, -} from './gas-price-chart.utils.js' +} from './gas-price-chart.utils' export default class GasPriceChart extends Component { static contextTypes = { diff --git a/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js b/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js index b6647f4c2..b43575063 100644 --- a/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js +++ b/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js @@ -1,7 +1,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import AccountModalContainer from '../account-modal-container' -import genAccountLink from '../../../../../lib/account-link.js' +import genAccountLink from '../../../../../lib/account-link' import QrView from '../../../ui/qr-code' import EditableLabel from '../../../ui/editable-label' import Button from '../../../ui/button' diff --git a/ui/app/components/app/selected-account/selected-account.component.js b/ui/app/components/app/selected-account/selected-account.component.js index c9561f820..ab5b56b24 100644 --- a/ui/app/components/app/selected-account/selected-account.component.js +++ b/ui/app/components/app/selected-account/selected-account.component.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' import copyToClipboard from 'copy-to-clipboard' import { shortenAddress, checksumAddress } from '../../../helpers/utils/util' -import Tooltip from '../../ui/tooltip-v2.js' +import Tooltip from '../../ui/tooltip-v2' class SelectedAccount extends Component { state = { diff --git a/ui/app/components/app/sidebars/tests/sidebars-component.test.js b/ui/app/components/app/sidebars/tests/sidebars-component.test.js index 8a203204e..ba92c72a5 100644 --- a/ui/app/components/app/sidebars/tests/sidebars-component.test.js +++ b/ui/app/components/app/sidebars/tests/sidebars-component.test.js @@ -3,7 +3,7 @@ import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup' -import Sidebar from '../sidebar.component.js' +import Sidebar from '../sidebar.component' import CustomizeGas from '../../gas-customization/gas-modal-page-container' diff --git a/ui/app/components/ui/button-group/tests/button-group-component.test.js b/ui/app/components/ui/button-group/tests/button-group-component.test.js index 755b0789d..f963c8696 100644 --- a/ui/app/components/ui/button-group/tests/button-group-component.test.js +++ b/ui/app/components/ui/button-group/tests/button-group-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' -import ButtonGroup from '../button-group.component.js' +import ButtonGroup from '../button-group.component' describe('ButtonGroup Component', function () { let wrapper diff --git a/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js b/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js index 720d0307b..e2c99f224 100644 --- a/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js +++ b/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js @@ -3,7 +3,7 @@ import configureMockStore from 'redux-mock-store' import thunk from 'redux-thunk' import sinon from 'sinon' -import ConfirmTransactionReducer, * as actions from './confirm-transaction.duck.js' +import ConfirmTransactionReducer, * as actions from './confirm-transaction.duck' const initialState = { txData: {}, diff --git a/ui/app/ducks/send/send-duck.test.js b/ui/app/ducks/send/send-duck.test.js index 3dda8728b..9731d5b2c 100644 --- a/ui/app/ducks/send/send-duck.test.js +++ b/ui/app/ducks/send/send-duck.test.js @@ -6,7 +6,7 @@ import SendReducer, { updateSendErrors, showGasButtonGroup, hideGasButtonGroup, -} from './send.duck.js' +} from './send.duck' describe('Send Duck', function () { const mockState = { diff --git a/ui/app/helpers/higher-order-components/initialized/index.js b/ui/app/helpers/higher-order-components/initialized/index.js index 863fcb389..5aa9f0809 100644 --- a/ui/app/helpers/higher-order-components/initialized/index.js +++ b/ui/app/helpers/higher-order-components/initialized/index.js @@ -1 +1 @@ -export { default } from './initialized.container.js' +export { default } from './initialized.container' diff --git a/ui/app/pages/confirm-approve/confirm-approve.util.js b/ui/app/pages/confirm-approve/confirm-approve.util.js index 0318c6bed..02ae4fe1e 100644 --- a/ui/app/pages/confirm-approve/confirm-approve.util.js +++ b/ui/app/pages/confirm-approve/confirm-approve.util.js @@ -1,5 +1,5 @@ import { decimalToHex } from '../../helpers/utils/conversions.util' -import { calcTokenValue } from '../../helpers/utils/token-util.js' +import { calcTokenValue } from '../../helpers/utils/token-util' import { getTokenData } from '../../helpers/utils/transactions.util' export function getCustomTxParamsData (data, { customPermissionAmount, decimals }) { diff --git a/ui/app/pages/create-account/connect-hardware/account-list.js b/ui/app/pages/create-account/connect-hardware/account-list.js index 933a26b5d..3f8e6be6b 100644 --- a/ui/app/pages/create-account/connect-hardware/account-list.js +++ b/ui/app/pages/create-account/connect-hardware/account-list.js @@ -1,7 +1,7 @@ import PropTypes from 'prop-types' import React, { Component } from 'react' import Select from 'react-select' -import genAccountLink from '../../../../lib/account-link.js' +import genAccountLink from '../../../../lib/account-link' import Button from '../../../components/ui/button' class AccountList extends Component { diff --git a/ui/app/pages/create-account/import-account/index.js b/ui/app/pages/create-account/import-account/index.js index 13d26f8f0..5cd5c25ff 100644 --- a/ui/app/pages/create-account/import-account/index.js +++ b/ui/app/pages/create-account/import-account/index.js @@ -3,9 +3,8 @@ import PropTypes from 'prop-types' import Select from 'react-select' // Subviews -import JsonImportView from './json.js' - -import PrivateKeyImportView from './private-key.js' +import JsonImportView from './json' +import PrivateKeyImportView from './private-key' export default class AccountImportSubview extends Component { static contextTypes = { diff --git a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.js b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.js index 4060b3eee..e187a1592 100644 --- a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.js +++ b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.js @@ -7,7 +7,7 @@ import { getSendMaxModeState, getBasicGasEstimateLoadingStatus, } from '../../../../../selectors' -import { calcMaxAmount } from './amount-max-button.utils.js' +import { calcMaxAmount } from './amount-max-button.utils' import { updateSendAmount, setMaxModeTo, diff --git a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js index 322d21288..0b964dfca 100644 --- a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js +++ b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' -import AmountMaxButton from '../amount-max-button.component.js' +import AmountMaxButton from '../amount-max-button.component' describe('AmountMaxButton Component', function () { let wrapper diff --git a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-utils.test.js b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-utils.test.js index 08fc28b73..caafcfb51 100644 --- a/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-utils.test.js +++ b/ui/app/pages/send/send-content/send-amount-row/amount-max-button/tests/amount-max-button-utils.test.js @@ -1,7 +1,7 @@ import assert from 'assert' import { calcMaxAmount, -} from '../amount-max-button.utils.js' +} from '../amount-max-button.utils' describe('amount-max-button utils', function () { diff --git a/ui/app/pages/send/send-content/send-amount-row/tests/send-amount-row-component.test.js b/ui/app/pages/send/send-content/send-amount-row/tests/send-amount-row-component.test.js index 6264c137c..4f99b8909 100644 --- a/ui/app/pages/send/send-content/send-amount-row/tests/send-amount-row-component.test.js +++ b/ui/app/pages/send/send-content/send-amount-row/tests/send-amount-row-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' -import SendAmountRow from '../send-amount-row.component.js' +import SendAmountRow from '../send-amount-row.component' import SendRowWrapper from '../../send-row-wrapper/send-row-wrapper.component' import AmountMaxButton from '../amount-max-button/amount-max-button.container' diff --git a/ui/app/pages/send/send-content/send-gas-row/send-gas-row.container.js b/ui/app/pages/send/send-content/send-gas-row/send-gas-row.container.js index e38a53227..82e6b4a7d 100644 --- a/ui/app/pages/send/send-content/send-gas-row/send-gas-row.container.js +++ b/ui/app/pages/send/send-content/send-gas-row/send-gas-row.container.js @@ -21,7 +21,7 @@ import { import { isBalanceSufficient, calcGasTotal, -} from '../../send.utils.js' +} from '../../send.utils' import { calcMaxAmount } from '../send-amount-row/amount-max-button/amount-max-button.utils' import { showGasButtonGroup, diff --git a/ui/app/pages/send/send-content/send-gas-row/tests/send-gas-row-component.test.js b/ui/app/pages/send/send-content/send-gas-row/tests/send-gas-row-component.test.js index b5b1b7f53..45c5683b6 100644 --- a/ui/app/pages/send/send-content/send-gas-row/tests/send-gas-row-component.test.js +++ b/ui/app/pages/send/send-content/send-gas-row/tests/send-gas-row-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' -import SendGasRow from '../send-gas-row.component.js' +import SendGasRow from '../send-gas-row.component' import SendRowWrapper from '../../send-row-wrapper/send-row-wrapper.component' import GasFeeDisplay from '../gas-fee-display/gas-fee-display.component' diff --git a/ui/app/pages/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-component.test.js b/ui/app/pages/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-component.test.js index 47d624598..6213173c2 100644 --- a/ui/app/pages/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-component.test.js +++ b/ui/app/pages/send/send-content/send-row-wrapper/send-row-error-message/tests/send-row-error-message-component.test.js @@ -1,7 +1,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' -import SendRowErrorMessage from '../send-row-error-message.component.js' +import SendRowErrorMessage from '../send-row-error-message.component' describe('SendRowErrorMessage Component', function () { let wrapper diff --git a/ui/app/pages/send/send-content/send-row-wrapper/tests/send-row-wrapper-component.test.js b/ui/app/pages/send/send-content/send-row-wrapper/tests/send-row-wrapper-component.test.js index 6d793c1bd..424014441 100644 --- a/ui/app/pages/send/send-content/send-row-wrapper/tests/send-row-wrapper-component.test.js +++ b/ui/app/pages/send/send-content/send-row-wrapper/tests/send-row-wrapper-component.test.js @@ -1,7 +1,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' -import SendRowWrapper from '../send-row-wrapper.component.js' +import SendRowWrapper from '../send-row-wrapper.component' import SendRowErrorMessage from '../send-row-error-message/send-row-error-message.container' diff --git a/ui/app/pages/send/send-content/tests/send-content-component.test.js b/ui/app/pages/send/send-content/tests/send-content-component.test.js index 01dc83277..6fdb76312 100644 --- a/ui/app/pages/send/send-content/tests/send-content-component.test.js +++ b/ui/app/pages/send/send-content/tests/send-content-component.test.js @@ -1,7 +1,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' -import SendContent from '../send-content.component.js' +import SendContent from '../send-content.component' import PageContainerContent from '../../../../components/ui/page-container/page-container-content.component' import SendAmountRow from '../send-amount-row/send-amount-row.container' diff --git a/ui/app/pages/send/send-footer/tests/send-footer-component.test.js b/ui/app/pages/send/send-footer/tests/send-footer-component.test.js index 12317cf09..d200e2dd7 100644 --- a/ui/app/pages/send/send-footer/tests/send-footer-component.test.js +++ b/ui/app/pages/send/send-footer/tests/send-footer-component.test.js @@ -3,7 +3,7 @@ import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' import { CONFIRM_TRANSACTION_ROUTE } from '../../../../helpers/constants/routes' -import SendFooter from '../send-footer.component.js' +import SendFooter from '../send-footer.component' import PageContainerFooter from '../../../../components/ui/page-container/page-container-footer' describe('SendFooter Component', function () { diff --git a/ui/app/pages/send/send-header/tests/send-header-component.test.js b/ui/app/pages/send/send-header/tests/send-header-component.test.js index 8e9c75f8f..3667a2504 100644 --- a/ui/app/pages/send/send-header/tests/send-header-component.test.js +++ b/ui/app/pages/send/send-header/tests/send-header-component.test.js @@ -2,7 +2,7 @@ import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import sinon from 'sinon' -import SendHeader from '../send-header.component.js' +import SendHeader from '../send-header.component' import PageContainerHeader from '../../../../components/ui/page-container/page-container-header' describe('SendHeader Component', function () { diff --git a/ui/app/pages/send/send.container.js b/ui/app/pages/send/send.container.js index e4a1c8194..9698255be 100644 --- a/ui/app/pages/send/send.container.js +++ b/ui/app/pages/send/send.container.js @@ -45,7 +45,7 @@ import { import { getTokens } from '../../ducks/metamask/metamask' import { calcGasTotal, -} from './send.utils.js' +} from './send.utils' import { isValidDomainName, } from '../../helpers/utils/util' diff --git a/ui/app/pages/settings/settings-tab/settings-tab.component.js b/ui/app/pages/settings/settings-tab/settings-tab.component.js index 39d67b5f9..2e3c7f220 100644 --- a/ui/app/pages/settings/settings-tab/settings-tab.component.js +++ b/ui/app/pages/settings/settings-tab/settings-tab.component.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' -import availableCurrencies from '../../../helpers/constants/available-conversions' +import availableCurrencies from '../../../helpers/constants/available-conversions.json' import SimpleDropdown from '../../../components/app/dropdowns/simple-dropdown' import ToggleButton from '../../../components/ui/toggle-button' import locales from '../../../../../app/_locales/index.json' diff --git a/ui/app/pages/token/fee-card/fee-card.stories.js b/ui/app/pages/token/fee-card/fee-card.stories.js index 8cadfed27..3e5b854bc 100644 --- a/ui/app/pages/token/fee-card/fee-card.stories.js +++ b/ui/app/pages/token/fee-card/fee-card.stories.js @@ -1,5 +1,5 @@ import React from 'react' -import FeeCard from './fee-card.js' +import FeeCard from './fee-card' import { action } from '@storybook/addon-actions' import { text } from '@storybook/addon-knobs/react'