Skip to content

FIX: Validate Snap arguments #47

FIX: Validate Snap arguments

FIX: Validate Snap arguments #47

Triggered via pull request December 5, 2023 10:46
Status Failure
Total duration 4m 15s
Artifacts

build-lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: packages/snap/src/index.ts#L47
Delete `······`
Lint: packages/snap/src/types.ts#L1
'Bytes' is defined but never used
Lint: packages/snap/src/types.ts#L2
`@metamask/snaps-utils/*` import should occur before import of `@metamask/utils`
Lint: packages/snap/src/types.ts#L3
'superstruct' should be listed in the project's dependencies. Run 'npm i -S superstruct' to add it
Lint: packages/snap/src/types.ts#L3
Import "Infer" is only used as types
Lint: packages/snap/src/types.ts#L3
Replace `·Infer,·boolean,·enums,·object,·optional,·type,·string,·number,·array·}·from·'superstruct';⏎` with `⏎··Infer,⏎··boolean,⏎··enums,⏎··object,⏎··optional,⏎··type,⏎··string,⏎··number,⏎··array,⏎}·from·'superstruct';`
Lint: packages/snap/src/types.ts#L3
'enums' is defined but never used
Lint: packages/snap/src/types.ts#L18
Delete `⏎`
Lint: packages/snap/src/types.ts#L30
Delete `⏎`
Lint: packages/snap/src/types.ts#L32
Insert `·`