Skip to content

Commit 6870bbe

Browse files
chore: add no-async-promise-executor as it becames recommanded
1 parent d062adf commit 6870bbe

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

packages/suite-data/eslint.config.mjs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { eslint } from '@trezor/eslint';
33
export default [
44
...eslint,
55
{
6-
"ignores": [
7-
"files/**/*",
8-
]
6+
ignores: ['files/**/*'],
97
},
108
{
119
rules: {

packages/suite-desktop-core/e2e/support/regtest.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export const generateBlock = () =>
1717
});
1818

1919
export const waitForCoinjoinBackend = () =>
20+
// Todo: refactor to not use async-promise-executor
21+
// eslint-disable-next-line no-async-promise-executor
2022
new Promise<void>(async (resolve, reject) => {
2123
const limit = 60;
2224
const error = '';

packages/suite/src/actions/wallet/exportTransactionsActions.ts

-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ export const exportTransactionsThunk = createThunk(
3838
// TODO: this is not nice (copy-paste)
3939
// metadata reducer is still not part of trezor-common and I can not import it
4040
// here. so either followup, or maybe when I have a moment I'll refactor it before merging this
41-
// eslint-disable-next-line no-restricted-syntax
4241
const provider = getState().metadata?.providers.find(
4342
// @ts-expect-error
44-
// eslint-disable-next-line no-restricted-syntax
4543
p => p.clientId === getState().metadata.selectedProvider.labels,
4644
);
4745
const metadataKeys = account?.metadata[1];

packages/suite/src/components/suite/DeviceDisplay/__tests__/DeviceDisplay.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { DeviceModelInternal } from '@trezor/connect';
88
import { DeepPartial } from '@trezor/type-utils';
99
import suiteReducer from '../../../../reducers/suite/suiteReducer';
1010

11-
const deviceReducer = prepareDeviceReducer(extraDependencies);
11+
const _deviceReducer = prepareDeviceReducer(extraDependencies);
1212

1313
type State = {
14-
device: DeepPartial<ReturnType<typeof deviceReducer>>;
14+
device: DeepPartial<ReturnType<typeof _deviceReducer>>;
1515
suite: DeepPartial<ReturnType<typeof suiteReducer>>;
1616
};
1717

packages/trezor-user-env-link/src/websocket-client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export class WebsocketClient extends TypedEmitter<WebsocketClientEvents> {
268268
}
269269

270270
waitForTrezorUserEnv() {
271+
// Todo: refactor to not use async-promise-executor
271272
// eslint-disable-next-line no-async-promise-executor
272273
return new Promise<void>(async (resolve, reject) => {
273274
// unfortunately, it can take incredibly long for trezor-user-env to start, we should

yarn.lock

-1
Original file line numberDiff line numberDiff line change
@@ -12189,7 +12189,6 @@ __metadata:
1218912189
resolution: "@trezor/transport-test@workspace:packages/transport-test"
1219012190
dependencies:
1219112191
"@jest/types": "npm:^29.6.3"
12192-
"@trezor/protobuf": "workspace:*"
1219312192
"@trezor/eslint": "workspace:*"
1219412193
"@trezor/protobuf": "workspace:*"
1219512194
"@trezor/transport": "workspace:*"

0 commit comments

Comments
 (0)