Remove unnecessary file extensions (#15352)

feature/default_network_editable
Brad Decker 2 years ago committed by GitHub
parent 77c3b4622b
commit 693a6dfc0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .eslintrc.base.js
  2. 2
      development/build/scripts.js
  3. 2
      development/build/styles.js
  4. 2
      development/build/transforms/utils.js
  5. 2
      development/highlights/index.js
  6. 2
      ui/components/app/transaction-activity-log/transaction-activity-log.container.test.js
  7. 2
      ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.container.test.js
  8. 2
      ui/components/app/user-preferenced-token-input/user-preferenced-token-input.container.test.js
  9. 2
      ui/pages/send/send-content/add-recipient/add-recipient.container.test.js
  10. 2
      ui/pages/send/send-content/send-amount-row/send-amount-row.container.test.js
  11. 2
      ui/pages/send/send-content/send-gas-row/send-gas-row.container.test.js
  12. 2
      ui/pages/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.container.test.js
  13. 6
      ui/pages/send/send-footer/send-footer.container.test.js

@ -72,12 +72,5 @@ module.exports = {
// upgrading eslint and dependencies. This rule should be evaluated and
// if agreeable turned on upstream in @metamask/eslint-config
'import/no-named-as-default-member': 'off',
// This rule is set to off to avoid churn when upgrading eslint and its
// dependencies. This rule should be enabled and the failures fixed in
// a separate PR. This rule prevents adding file extensions to imports
// of the same type. E.G, not adding the '.js' extension to file names when
// inside a .js file.
'import/extensions': 'off',
},
};

@ -46,7 +46,7 @@ const metamaskrc = require('rc')('metamask', {
'https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/273496',
});
const { streamFlatMap } = require('../stream-flat-map.js');
const { streamFlatMap } = require('../stream-flat-map');
const { BuildType } = require('../lib/build-type');
const {

@ -73,7 +73,7 @@ async function buildScssPipeline(src, dest, devMode, rtl) {
// use our own compiler which runs sass in its own process
// in order to not pollute the intrinsics
// eslint-disable-next-line node/global-require
sass.compiler = require('./sass-compiler.js');
sass.compiler = require('./sass-compiler');
}
await pump(
...[

@ -1,5 +1,5 @@
const { ESLint } = require('eslint');
const eslintrc = require('../../../.eslintrc.js');
const eslintrc = require('../../../.eslintrc');
eslintrc.overrides.forEach((override) => {
const rules = override.rules ?? {};

@ -1,6 +1,6 @@
const { promisify } = require('util');
const exec = promisify(require('child_process').exec);
const storybook = require('./storybook.js');
const storybook = require('./storybook');
module.exports = { getHighlights };

@ -8,7 +8,7 @@ jest.mock('react-redux', () => ({
},
}));
require('./transaction-activity-log.container.js');
require('./transaction-activity-log.container');
describe('TransactionActivityLog container', () => {
describe('mapStateToProps()', () => {

@ -8,7 +8,7 @@ jest.mock('react-redux', () => ({
},
}));
require('./user-preferenced-currency-input.container.js');
require('./user-preferenced-currency-input.container');
describe('UserPreferencedCurrencyInput container', () => {
describe('mapStateToProps()', () => {

@ -8,7 +8,7 @@ jest.mock('react-redux', () => ({
},
}));
require('./user-preferenced-token-input.container.js');
require('./user-preferenced-token-input.container');
describe('UserPreferencedTokenInput container', () => {
describe('mapStateToProps()', () => {

@ -40,7 +40,7 @@ jest.mock('../../../../ducks/send', () => ({
getRecipient: (s) => `mockRecipient:${s}`,
}));
require('./add-recipient.container.js');
require('./add-recipient.container');
describe('add-recipient container', () => {
describe('mapStateToProps()', () => {

@ -15,7 +15,7 @@ jest.mock('../../../../ducks/send', () => ({
updateSendAmount: jest.fn(),
}));
require('./send-amount-row.container.js');
require('./send-amount-row.container');
describe('send-amount-row container', () => {
describe('mapDispatchToProps()', () => {

@ -48,7 +48,7 @@ jest.mock('../../../../ducks/gas/gas.duck', () => ({
setCustomGasLimit: jest.fn(),
}));
require('./send-gas-row.container.js');
require('./send-gas-row.container');
describe('send-gas-row container', () => {
describe('mapDispatchToProps()', () => {

@ -12,7 +12,7 @@ jest.mock('../../../../../ducks/send', () => ({
getSendErrors: (s) => `mockErrors:${s}`,
}));
require('./send-row-error-message.container.js');
require('./send-row-error-message.container');
describe('send-row-error-message container', () => {
describe('mapStateToProps()', () => {

@ -12,7 +12,7 @@ jest.mock('react-redux', () => ({
},
}));
jest.mock('../../../store/actions.js', () => ({
jest.mock('../../../store/actions', () => ({
addToAddressBook: jest.fn(),
cancelTx: jest.fn(),
}));
@ -31,12 +31,12 @@ jest.mock('../../../ducks/send', () => ({
signTransaction: jest.fn(),
}));
jest.mock('../../../selectors/custom-gas.js', () => ({
jest.mock('../../../selectors/custom-gas', () => ({
getRenderableEstimateDataForSmallButtonsFromGWEI: (s) => [
{ gasEstimateType: `mockGasEstimateType:${s}` },
],
}));
require('./send-footer.container.js');
require('./send-footer.container');
describe('send-footer container', () => {
describe('mapDispatchToProps()', () => {

Loading…
Cancel
Save