Skip to content

FIX: Validate Snap arguments #48

FIX: Validate Snap arguments

FIX: Validate Snap arguments #48

Triggered via pull request December 5, 2023 10:47
Status Failure
Total duration 3m 52s
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#L28
Delete `⏎`
Lint: packages/snap/src/types.ts#L30
Insert `·`