Member Junction
    Preparing search index...

    A standard, as registered.

    Since is the MJ version that introduced the check. A repo records the version it adopted against (standardsVersion in its config). Checks introduced after that version are reported as available, never enabled — so upgrading @memberjunction/standards can add rules without changing any repo's result until a human runs mj standards adopt --upgrade.

    DefaultSeverity is what adopt writes into a repo's config when it first enables the check. It is a starting point for new adopters, not a live value: changing it here never changes an already-adopted repo, because the repo's config holds its own severity.

    That asymmetry is the whole point. Severity can decay forward (warnerror on a major, by the repo's own choice) and never backward into a repo that has already shipped.

    interface StandardCheck {
        DefaultOptions?: Record<string, unknown>;
        DefaultRoots: string[];
        DefaultSeverity: "warn" | "error";
        Description: string;
        DocsUrl: string;
        Id: string;
        Since: string;
        Title: string;
        Run(context: CheckContext): CheckResult | Promise<CheckResult>;
    }
    Index

    Properties

    DefaultOptions?: Record<string, unknown>

    Options adopt writes for a new adopter.

    DefaultRoots: string[]

    Default roots to scan when the repo doesn't name any.

    DefaultSeverity: "warn" | "error"

    Severity adopt writes for a NEW adopter. Never applied to an already-configured repo.

    Description: string

    Longer explanation, shown by mj standards list.

    DocsUrl: string

    Where the reasoning lives. Printed with every failure — a rule without a why gets ignored.

    Id: string

    Stable, kebab-case identifier. Used as the config key — renaming one is a breaking change.

    Since: string

    MJ version that introduced this check, e.g. '6.0.0'.

    Title: string

    One line, imperative: what the check enforces.

    Methods