Skip to content

Commit 3c29d01

Browse files
committed
lint:fix
1 parent 9d0446a commit 3c29d01

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/classes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {
2-
isPlainObject,
1+
import type {
32
Json,
43
JsonRpcError as SerializedJsonRpcError,
54
} from '@metamask/utils';
5+
import { isPlainObject } from '@metamask/utils';
66
import safeStringify from 'fast-safe-stringify';
77

88
import type { OptionalDataWithOptionalCause } from './utils';

src/errors.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { JsonRpcError, EthereumProviderError } from './classes';
22
import { errorCodes } from './error-constants';
3-
import { OptionalDataWithOptionalCause, getMessageFromCode } from './utils';
3+
import type { OptionalDataWithOptionalCause } from './utils';
4+
import { getMessageFromCode } from './utils';
45

56
type EthereumErrorOptions<Cause extends OptionalDataWithOptionalCause> = {
67
message?: string;
@@ -25,8 +26,9 @@ export const rpcErrors = {
2526
* @param arg - The error message or options bag.
2627
* @returns An instance of the {@link JsonRpcError} class.
2728
*/
28-
parse: <Cause extends OptionalDataWithOptionalCause>(arg?: JsonRpcErrorsArg<Cause>) =>
29-
getJsonRpcError(errorCodes.rpc.parse, arg),
29+
parse: <Cause extends OptionalDataWithOptionalCause>(
30+
arg?: JsonRpcErrorsArg<Cause>,
31+
) => getJsonRpcError(errorCodes.rpc.parse, arg),
3032

3133
/**
3234
* Get a JSON RPC 2.0 Invalid Request (-32600) error.

src/utils.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
import type {
2+
Json,
3+
JsonRpcError as SerializedJsonRpcError,
4+
RuntimeObject,
5+
} from '@metamask/utils';
16
import {
27
hasProperty,
38
isValidJson,
49
isObject,
510
isJsonRpcError,
6-
Json,
7-
JsonRpcError as SerializedJsonRpcError,
8-
RuntimeObject,
911
} from '@metamask/utils';
1012

1113
import { errorCodes, errorValues } from './error-constants';

0 commit comments

Comments
 (0)