Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Options controlling which checks are enforced.

    interface ValidationOptions {
        requireH1?: boolean;
        requireSections?: boolean;
        requireSources?: boolean;
        minWordCount?: number;
        requireLangAttr?: boolean;
        requireDoctype?: boolean;
    }
    Index

    Properties

    requireH1?: boolean

    Require a <h1> element (default: true).

    requireSections?: boolean

    Require at least one <h2> section (default: true).

    requireSources?: boolean

    Require the sources footer block and fail when absent (default: true).

    minWordCount?: number

    Minimum word count threshold (default: 50).

    requireLangAttr?: boolean

    Require valid <html lang="…"> attribute (default: true).

    requireDoctype?: boolean

    Require <!DOCTYPE html> declaration (default: true).