Skip to content

FIX: Validate Snap arguments #46

FIX: Validate Snap arguments

FIX: Validate Snap arguments #46

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

build-lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: packages/snap/src/index.ts#L32
Replace `⏎······const·{·path,·compressed·}·=·request.params·as·GetBip32PublicKeyParams;⏎` with `const·{·path,·compressed·}·=·request.params·as·GetBip32PublicKeyParams;`
Lint: packages/snap/src/index.ts#L49
Delete `······⏎`
Lint: packages/snap/src/index.ts#L68
Delete `⏎······`
Lint: packages/snap/src/index.ts#L83
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