Skip to content

Commit 595a29f

Browse files
committed
[DDW-596] revert back to prettier 2.1.2
hopefully this reverts many formatting changes that obscure the important PR updates.
1 parent 0d1acb4 commit 595a29f

File tree

177 files changed

+1929
-1509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+1929
-1509
lines changed

hardware-wallet-tests/cardano-app-already-launched.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const run = () => {
2424

2525
const cardanoAppChannel = createCardanoAppChannel();
2626
const publicKeyChannel = createGetPublicKeyChannel();
27-
const hardwareWalletConnectionChannel =
28-
createHardwareWalletConnectionChannel();
27+
const hardwareWalletConnectionChannel = createHardwareWalletConnectionChannel();
2928

3029
return new Promise<void>((resolve) => {
3130
hardwareWalletConnectionChannel.onReceive(

hardware-wallet-tests/cardano-app-not-started.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const run = () => {
2424
createAndRegisterHardwareWalletChannels();
2525

2626
const publicKeyChannel = createGetPublicKeyChannel();
27-
const hardwareWalletConnectionChannel =
28-
createHardwareWalletConnectionChannel();
27+
const hardwareWalletConnectionChannel = createHardwareWalletConnectionChannel();
2928

3029
return new Promise<void>((resolve) => {
3130
hardwareWalletConnectionChannel.onReceive(
@@ -40,8 +39,9 @@ export const run = () => {
4039
product: expect.any(String),
4140
});
4241

43-
const cardanoAppChannelResponse =
44-
await requestLaunchingCardanoAppOnLedger(params.path);
42+
const cardanoAppChannelResponse = await requestLaunchingCardanoAppOnLedger(
43+
params.path
44+
);
4545

4646
expect(cardanoAppChannelResponse).toEqual({
4747
minor: expect.any(Number),

hardware-wallet-tests/connect-multiple-hardware-wallets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export const run = () => {
1414

1515
createAndRegisterHardwareWalletChannels();
1616

17-
const hardwareWalletConnectionChannel =
18-
createHardwareWalletConnectionChannel();
17+
const hardwareWalletConnectionChannel = createHardwareWalletConnectionChannel();
1918

2019
createTestInstructions([
2120
'Start test runner',

hardware-wallet-tests/disconnect-multiple-hardware-wallets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export const run = () => {
3333

3434
createAndRegisterHardwareWalletChannels();
3535

36-
const hardwareWalletConnectionChannel =
37-
createHardwareWalletConnectionChannel();
36+
const hardwareWalletConnectionChannel = createHardwareWalletConnectionChannel();
3837

3938
createTestInstructions([
4039
'Connect Nano S',

hardware-wallet-tests/disconnect-single-hardware-wallet.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export const run = () => {
1919

2020
createAndRegisterHardwareWalletChannels();
2121

22-
const hardwareWalletConnectionChannel =
23-
createHardwareWalletConnectionChannel();
22+
const hardwareWalletConnectionChannel = createHardwareWalletConnectionChannel();
2423

2524
const getNextExpectedSequence = createSequentialResult([
2625
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"path-browserify": "1.0.1",
163163
"postcss": "8.3.6",
164164
"postcss-modules": "4.2.2",
165-
"prettier": "2.4.0",
165+
"prettier": "2.1.2",
166166
"pretty-quick": "3.0.2",
167167
"prettysize": "2.0.0",
168168
"react-intl-translations-manager": "5.0.3",

source/common/ipc/api.ts

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ export type ExportWalletsMainResponse = {
320320
*/
321321
export const GENERATE_WALLET_MIGRATION_REPORT_CHANNEL =
322322
'GENERATE_WALLET_MIGRATION_REPORT_CHANNEL';
323-
export type GenerateWalletMigrationReportRendererRequest =
324-
WalletMigrationReportData;
323+
export type GenerateWalletMigrationReportRendererRequest = WalletMigrationReportData;
325324
export type GenerateWalletMigrationReportMainResponse = void;
326325

327326
/**
@@ -370,8 +369,7 @@ export type ResumeDownloadMainResponse = ResumeDownloadResponse | void;
370369
*/
371370
export const DELETE_DOWNLOADED_FILE = 'DELETE_DOWNLOADED_FILE';
372371
export type DeleteDownloadedFileRendererRequest = DeleteDownloadedFileRequest;
373-
export type DeleteDownloadedFileMainResponse =
374-
DeleteDownloadedFileResponse | void;
372+
export type DeleteDownloadedFileMainResponse = DeleteDownloadedFileResponse | void;
375373

376374
/**
377375
* Channel for initiating the download manager
@@ -384,16 +382,14 @@ export type DownloadLocalDataMainResponse = DownloadLocalDataResponse;
384382
* Channel for initiating the download manager
385383
*/
386384
export const GET_DOWNLOADS_LOCAL_DATA = 'GET_DOWNLOADS_LOCAL_DATA';
387-
export type DownloadsLocalDataRendererRequest =
388-
DownloadsLocalDataRequest | void;
385+
export type DownloadsLocalDataRendererRequest = DownloadsLocalDataRequest | void;
389386
export type DownloadsLocalDataMainResponse = DownloadsLocalDataResponse | void;
390387

391388
/**
392389
* Channel for initiating the download manager
393390
*/
394391
export const CLEAR_DOWNLOAD_LOCAL_DATA = 'CLEAR_DOWNLOAD_LOCAL_DATA';
395-
export type ClearDownloadLocalDataRendererRequest =
396-
ClearDownloadLocalDataRequest;
392+
export type ClearDownloadLocalDataRendererRequest = ClearDownloadLocalDataRequest;
397393
export type ClearDownloadLocalDataMainResponse = ClearDownloadLocalDataResponse;
398394

399395
/**
@@ -471,16 +467,12 @@ export type GetBlockSyncProgressMainResponse = BlockSyncProgress;
471467

472468
export const GET_HARDWARE_WALLET_TRANSPORT_CHANNEL =
473469
'GET_HARDWARE_WALLET_TRANSPORT_CHANNEL';
474-
export type getHardwareWalletTransportRendererRequest =
475-
HardwareWalletTransportDeviceRequest;
476-
export type getHardwareWalletTransportMainResponse =
477-
HardwareWalletTransportDeviceResponse;
470+
export type getHardwareWalletTransportRendererRequest = HardwareWalletTransportDeviceRequest;
471+
export type getHardwareWalletTransportMainResponse = HardwareWalletTransportDeviceResponse;
478472
export const GET_EXTENDED_PUBLIC_KEY_CHANNEL =
479473
'GET_EXTENDED_PUBLIC_KEY_CHANNEL';
480-
export type getExtendedPublicKeyRendererRequest =
481-
HardwareWalletExtendedPublicKeyRequest;
482-
export type getExtendedPublicKeyMainResponse =
483-
HardwareWalletExtendedPublicKeyResponse;
474+
export type getExtendedPublicKeyRendererRequest = HardwareWalletExtendedPublicKeyRequest;
475+
export type getExtendedPublicKeyMainResponse = HardwareWalletExtendedPublicKeyResponse;
484476
export const GET_CARDANO_ADA_APP_CHANNEL = 'GET_CARDANO_ADA_APP_CHANNEL';
485477
export type getCardanoAdaAppRendererRequest = {
486478
path: string | null | undefined;
@@ -489,8 +481,7 @@ export type getCardanoAdaAppRendererRequest = {
489481
export type getCardanoAdaAppMainResponse = HardwareWalletCardanoAdaAppResponse;
490482
export const GET_HARDWARE_WALLET_CONNECTION_CHANNEL =
491483
'GET_HARDWARE_WALLET_CONNECTION_CHANNEL';
492-
export type getHardwareWalletConnectionMainRequest =
493-
HardwareWalletConnectionRequest;
484+
export type getHardwareWalletConnectionMainRequest = HardwareWalletConnectionRequest;
494485
export type getHardwareWalletConnectionRendererResponse =
495486
| LedgerDevicePayload
496487
| TrezorDevicePayload

source/common/ipc/lib/IpcChannel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export interface Channel<Incoming, Outgoing> {
4848
* and response cycles.
4949
*/
5050
export class IpcChannel<Incoming, Outgoing>
51-
implements Channel<Incoming, Outgoing>
52-
{
51+
implements Channel<Incoming, Outgoing> {
5352
/**
5453
* Each ipc channel should be a singleton (based on the channelName)
5554
* Here we track the created instances.

source/common/types/hardware-wallets.types.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ export type StakingBlockchainPointer = {
153153
txIndex: number;
154154
certificateIndex: number;
155155
};
156-
export type LedgerSignTransactionInputsType =
157-
Array<LedgerSignTransactionInputType>;
156+
export type LedgerSignTransactionInputsType = Array<
157+
LedgerSignTransactionInputType
158+
>;
158159
export type LedgerSignTransactionOutputsType =
159160
| []
160161
| Array<LedgerOutputTypeAddress | LedgerOutputTypeChange>;
@@ -200,8 +201,9 @@ export type TrezorOutputTypeChange = {
200201
stakingPath: string;
201202
};
202203
};
203-
export type TrezorSignTransactionInputsType =
204-
Array<TrezorSignTransactionInputType>;
204+
export type TrezorSignTransactionInputsType = Array<
205+
TrezorSignTransactionInputType
206+
>;
205207
export type TrezorSignTransactionOutputsType = Array<
206208
TrezorOutputTypeAddress | TrezorOutputTypeChange
207209
>;

source/common/utils/files.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ export const generateFileNameWithTimestamp = (props: Props = {}) => {
3232
if (sanitize) fileName = sanitizeFilename(fileName);
3333
return fileName;
3434
};
35-
export const isFileNameWithTimestamp =
36-
(prefix = 'logs', extension = 'zip') =>
37-
(fileName: string) =>
38-
fileName.match(
39-
RegExp(
40-
`(${prefix}-)([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{6}.0[0-9]{3}Z)(.${extension})`
41-
)
42-
);
35+
export const isFileNameWithTimestamp = (prefix = 'logs', extension = 'zip') => (
36+
fileName: string
37+
) =>
38+
fileName.match(
39+
RegExp(
40+
`(${prefix}-)([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{6}.0[0-9]{3}Z)(.${extension})`
41+
)
42+
);
4343
export const getPathSlash = (path: string) =>
4444
path.indexOf('/') > -1 ? '/' : '\\';
4545
export const extractFileNameFromPath = (path: string) =>

0 commit comments

Comments
 (0)