Home > harper.js > Linter > loadWeirpackFromBlob

Linter.loadWeirpackFromBlob() method

Load a Weirpack from a Blob, merging its rules into the current linter. Returns undefined when the Weirpack tests pass and the rules are imported, otherwise returns a map of rule names → failing tests so the caller can surface the broken expectations.

Signature:

loadWeirpackFromBlob(blob: Blob): Promise<WeirpackTestFailures | undefined>;

Parameters

Parameter

Type

Description

blob

Blob

Returns:

Promise<WeirpackTestFailures | undefined>