Skip to main content

What it flags

Reviews js-yaml calls when the source compiler’s existing module resolution identifies the installed package version. The rule recognizes v3 default full loading, explicit v3 full schemas, and a v4 default schema extended with the js-yaml-js-types aggregate. v4 data-only defaults stay quiet. When js-yaml is not installed, or its version cannot be established, calls are judged as v4: only the explicit DEFAULT_SCHEMA.extend(...) schema with the js-yaml-js-types aggregate reports, since that API exists only in v4. Calls also stay quiet when the loader binding or effective options cannot be established. This includes options with a custom prototype and no own schema. js-yaml migration notes Review where the source data comes from and use a schema limited to the necessary data types at untrusted boundaries. The finding is contextual and report-only. Use the default JavaScript engine or --engine js for this rule. The native engine does not expose the package version metadata it needs.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: