Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jun 10, 2024
1 parent 4780c70 commit d97cc23
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SnapKeyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import {
import type { SnapController } from '@metamask/snaps-controllers';
import type { SnapId } from '@metamask/snaps-sdk';
import type { Snap } from '@metamask/snaps-utils';
import { assert, mask, object, string } from '@metamask/superstruct';
import type { Json } from '@metamask/utils';
import {
bigIntToHex,
KnownCaipNamespace,
toCaipChainId,
} from '@metamask/utils';
import { EventEmitter } from 'events';
import { assert, mask, object, string } from '@metamask/superstruct';
import { v4 as uuid } from 'uuid';

import { DeferredPromise } from './DeferredPromise';
Expand Down
11 changes: 9 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { JsonStruct } from '@metamask/utils';
import type { Infer } from '@metamask/superstruct';
import { array, object, optional, record, string, union } from '@metamask/superstruct';
import {
array,
object,
optional,
record,
string,
union,
} from '@metamask/superstruct';
import { JsonStruct } from '@metamask/utils';

export const SnapMessageStruct = object({
method: string(),
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Json } from '@metamask/utils';
import type { Struct } from '@metamask/superstruct';
import { assert } from '@metamask/superstruct';
import type { Json } from '@metamask/utils';

/**
* Assert that a value is valid according to a struct.
Expand Down

0 comments on commit d97cc23

Please sign in to comment.