mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Remove unnecessary file extensions (#15352)
This commit is contained in:
parent
77c3b4622b
commit
693a6dfc0c
@ -72,12 +72,5 @@ module.exports = {
|
|||||||
// upgrading eslint and dependencies. This rule should be evaluated and
|
// upgrading eslint and dependencies. This rule should be evaluated and
|
||||||
// if agreeable turned on upstream in @metamask/eslint-config
|
// if agreeable turned on upstream in @metamask/eslint-config
|
||||||
'import/no-named-as-default-member': 'off',
|
'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',
|
'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 { BuildType } = require('../lib/build-type');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
@ -73,7 +73,7 @@ async function buildScssPipeline(src, dest, devMode, rtl) {
|
|||||||
// use our own compiler which runs sass in its own process
|
// use our own compiler which runs sass in its own process
|
||||||
// in order to not pollute the intrinsics
|
// in order to not pollute the intrinsics
|
||||||
// eslint-disable-next-line node/global-require
|
// eslint-disable-next-line node/global-require
|
||||||
sass.compiler = require('./sass-compiler.js');
|
sass.compiler = require('./sass-compiler');
|
||||||
}
|
}
|
||||||
await pump(
|
await pump(
|
||||||
...[
|
...[
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const { ESLint } = require('eslint');
|
const { ESLint } = require('eslint');
|
||||||
const eslintrc = require('../../../.eslintrc.js');
|
const eslintrc = require('../../../.eslintrc');
|
||||||
|
|
||||||
eslintrc.overrides.forEach((override) => {
|
eslintrc.overrides.forEach((override) => {
|
||||||
const rules = override.rules ?? {};
|
const rules = override.rules ?? {};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const { promisify } = require('util');
|
const { promisify } = require('util');
|
||||||
const exec = promisify(require('child_process').exec);
|
const exec = promisify(require('child_process').exec);
|
||||||
const storybook = require('./storybook.js');
|
const storybook = require('./storybook');
|
||||||
|
|
||||||
module.exports = { getHighlights };
|
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('TransactionActivityLog container', () => {
|
||||||
describe('mapStateToProps()', () => {
|
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('UserPreferencedCurrencyInput container', () => {
|
||||||
describe('mapStateToProps()', () => {
|
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('UserPreferencedTokenInput container', () => {
|
||||||
describe('mapStateToProps()', () => {
|
describe('mapStateToProps()', () => {
|
||||||
|
@ -40,7 +40,7 @@ jest.mock('../../../../ducks/send', () => ({
|
|||||||
getRecipient: (s) => `mockRecipient:${s}`,
|
getRecipient: (s) => `mockRecipient:${s}`,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
require('./add-recipient.container.js');
|
require('./add-recipient.container');
|
||||||
|
|
||||||
describe('add-recipient container', () => {
|
describe('add-recipient container', () => {
|
||||||
describe('mapStateToProps()', () => {
|
describe('mapStateToProps()', () => {
|
||||||
|
@ -15,7 +15,7 @@ jest.mock('../../../../ducks/send', () => ({
|
|||||||
updateSendAmount: jest.fn(),
|
updateSendAmount: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
require('./send-amount-row.container.js');
|
require('./send-amount-row.container');
|
||||||
|
|
||||||
describe('send-amount-row container', () => {
|
describe('send-amount-row container', () => {
|
||||||
describe('mapDispatchToProps()', () => {
|
describe('mapDispatchToProps()', () => {
|
||||||
|
@ -48,7 +48,7 @@ jest.mock('../../../../ducks/gas/gas.duck', () => ({
|
|||||||
setCustomGasLimit: jest.fn(),
|
setCustomGasLimit: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
require('./send-gas-row.container.js');
|
require('./send-gas-row.container');
|
||||||
|
|
||||||
describe('send-gas-row container', () => {
|
describe('send-gas-row container', () => {
|
||||||
describe('mapDispatchToProps()', () => {
|
describe('mapDispatchToProps()', () => {
|
||||||
|
@ -12,7 +12,7 @@ jest.mock('../../../../../ducks/send', () => ({
|
|||||||
getSendErrors: (s) => `mockErrors:${s}`,
|
getSendErrors: (s) => `mockErrors:${s}`,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
require('./send-row-error-message.container.js');
|
require('./send-row-error-message.container');
|
||||||
|
|
||||||
describe('send-row-error-message container', () => {
|
describe('send-row-error-message container', () => {
|
||||||
describe('mapStateToProps()', () => {
|
describe('mapStateToProps()', () => {
|
||||||
|
@ -12,7 +12,7 @@ jest.mock('react-redux', () => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('../../../store/actions.js', () => ({
|
jest.mock('../../../store/actions', () => ({
|
||||||
addToAddressBook: jest.fn(),
|
addToAddressBook: jest.fn(),
|
||||||
cancelTx: jest.fn(),
|
cancelTx: jest.fn(),
|
||||||
}));
|
}));
|
||||||
@ -31,12 +31,12 @@ jest.mock('../../../ducks/send', () => ({
|
|||||||
signTransaction: jest.fn(),
|
signTransaction: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('../../../selectors/custom-gas.js', () => ({
|
jest.mock('../../../selectors/custom-gas', () => ({
|
||||||
getRenderableEstimateDataForSmallButtonsFromGWEI: (s) => [
|
getRenderableEstimateDataForSmallButtonsFromGWEI: (s) => [
|
||||||
{ gasEstimateType: `mockGasEstimateType:${s}` },
|
{ gasEstimateType: `mockGasEstimateType:${s}` },
|
||||||
],
|
],
|
||||||
}));
|
}));
|
||||||
require('./send-footer.container.js');
|
require('./send-footer.container');
|
||||||
|
|
||||||
describe('send-footer container', () => {
|
describe('send-footer container', () => {
|
||||||
describe('mapDispatchToProps()', () => {
|
describe('mapDispatchToProps()', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user