Skip to content
CtrlK

FrontmatterValidationConfig

On this page
import type { FrontmatterValidationConfig } from "ardo/config"

type FrontmatterValidationConfig = {
    /** How to report unsupported frontmatter keys. Defaults to `ignore` for compatibility. */
    unknown?: DiagnosticLevel;
    /** How to report known frontmatter keys with an invalid value. Defaults to `warn`. */
    invalid?: DiagnosticLevel;
};

Properties

NameTypeRequiredDescription
unknownDiagnosticLevelNoHow to report unsupported frontmatter keys. Defaults to ignore for compatibility.
invalidDiagnosticLevelNoHow to report known frontmatter keys with an invalid value. Defaults to warn.