Skip to content

Commit a40310f

Browse files
committed
Manually deduplicate any duplicate imports added by the autofixer
1 parent ef1d441 commit a40310f

File tree

35 files changed

+97
-69
lines changed

35 files changed

+97
-69
lines changed

packages/account-tree-controller/src/AccountTreeController.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import type {
2+
AccountGroupId,
3+
AccountWalletId,
4+
Bip44Account,
5+
} from '@metamask/account-api';
16
import {
27
AccountGroupType,
38
AccountWalletType,
@@ -6,8 +11,6 @@ import {
611
toMultichainAccountGroupId,
712
toMultichainAccountWalletId,
813
} from '@metamask/account-api';
9-
import type { AccountWalletId, Bip44Account } from '@metamask/account-api';
10-
import type { AccountGroupId } from '@metamask/account-api';
1114
import type { AccountId } from '@metamask/accounts-controller';
1215
import { deriveStateFromMetadata } from '@metamask/base-controller';
1316
import {

packages/account-tree-controller/src/backup-and-sync/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import {
1313
number,
1414
optional,
1515
} from '@metamask/superstruct';
16-
import type { Infer } from '@metamask/superstruct';
17-
import type { Struct } from '@metamask/superstruct';
16+
import type { Infer, Struct } from '@metamask/superstruct';
1817

1918
import type { BackupAndSyncEmitAnalyticsEventParams } from './analytics';
2019
import type { AccountTreeController } from '../AccountTreeController';

packages/accounts-controller/src/AccountsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import {
1818
KeyringAccountEntropyTypeOption,
1919
} from '@metamask/keyring-api';
2020
import { KeyringTypes } from '@metamask/keyring-controller';
21-
import type { KeyringObject } from '@metamask/keyring-controller';
2221
import type {
2322
KeyringControllerState,
2423
KeyringControllerGetKeyringsByTypeAction,
2524
KeyringControllerStateChangeEvent,
2625
KeyringControllerGetStateAction,
26+
KeyringObject,
2727
} from '@metamask/keyring-controller';
2828
import type { InternalAccount } from '@metamask/keyring-internal-api';
2929
import { isScopeEqualToAny } from '@metamask/keyring-utils';

packages/assets-controllers/src/AccountTrackerController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import type {
88
MockAnyNamespace,
99
} from '@metamask/messenger';
1010
import { getDefaultNetworkControllerState } from '@metamask/network-controller';
11-
import type { NetworkConfiguration } from '@metamask/network-controller';
1211
import type {
1312
NetworkClientId,
1413
NetworkClientConfiguration,
14+
NetworkConfiguration,
1515
} from '@metamask/network-controller';
1616
import { getDefaultPreferencesState } from '@metamask/preferences-controller';
1717
import { TransactionStatus } from '@metamask/transaction-controller';

packages/assets-controllers/src/TokensController.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { Contract } from '@ethersproject/contracts';
22
import { ApprovalController } from '@metamask/approval-controller';
3-
import type { ApprovalControllerMessenger } from '@metamask/approval-controller';
4-
import type { ApprovalControllerState } from '@metamask/approval-controller';
3+
import type {
4+
ApprovalControllerMessenger,
5+
ApprovalControllerState,
6+
} from '@metamask/approval-controller';
57
import { deriveStateFromMetadata } from '@metamask/base-controller';
68
import contractMaps from '@metamask/contract-metadata';
79
import {

packages/bridge-controller/src/bridge-controller.sse.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import {
1111
ETH_USDT_ADDRESS,
1212
} from './constants/bridge';
1313
import { ChainId, RequestStatus } from './types';
14-
import type { QuoteResponse, TxData } from './types';
15-
import type { BridgeControllerMessenger } from './types';
14+
import type { BridgeControllerMessenger, QuoteResponse, TxData } from './types';
1615
import * as balanceUtils from './utils/balance';
1716
import { formatChainIdToDec } from './utils/caip-formatters';
1817
import * as featureFlagUtils from './utils/feature-flags';

packages/bridge-controller/src/bridge-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import { SWAPS_CONTRACT_ADDRESSES } from './constants/swaps';
2222
import { TraceName } from './constants/traces';
2323
import { selectIsAssetExchangeRateInState } from './selectors';
2424
import { RequestStatus } from './types';
25-
import type { QuoteRequest } from './types';
2625
import type {
2726
L1GasFees,
2827
GenericQuoteRequest,
2928
NonEvmFees,
29+
QuoteRequest,
3030
QuoteResponse,
3131
BridgeControllerState,
3232
BridgeControllerMessenger,

packages/bridge-controller/src/utils/bridge.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Contract } from '@ethersproject/contracts';
33
import { BtcScope, SolScope, TrxScope } from '@metamask/keyring-api';
44
import { abiERC20 } from '@metamask/metamask-eth-abis';
55
import { isCaipChainId, isStrictHexString } from '@metamask/utils';
6-
import type { CaipAssetType, CaipChainId } from '@metamask/utils';
7-
import type { Hex } from '@metamask/utils';
6+
import type { CaipAssetType, CaipChainId, Hex } from '@metamask/utils';
87

98
import {
109
formatChainIdToCaip,

packages/bridge-controller/src/utils/caip-formatters.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
isCaipAssetType,
1313
CaipAssetTypeStruct,
1414
} from '@metamask/utils';
15-
import type { CaipAssetType } from '@metamask/utils';
16-
import type { Hex, CaipChainId } from '@metamask/utils';
15+
import type { CaipAssetType, CaipChainId, Hex } from '@metamask/utils';
1716

1817
import {
1918
getNativeAssetForChainId,

packages/bridge-controller/src/utils/metrics/properties.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ import type {
99
} from './types';
1010
import { DEFAULT_BRIDGE_CONTROLLER_STATE } from '../../constants/bridge';
1111
import { ChainId } from '../../types';
12-
import type { QuoteMetadata, QuoteResponse, TxData } from '../../types';
13-
import type { GenericQuoteRequest, QuoteRequest } from '../../types';
12+
import type {
13+
GenericQuoteRequest,
14+
QuoteMetadata,
15+
QuoteRequest,
16+
QuoteResponse,
17+
TxData,
18+
} from '../../types';
1419
import { getNativeAssetForChainId, isCrossChain } from '../bridge';
1520
import {
1621
formatAddressToAssetId,

0 commit comments

Comments
 (0)