Open Design Tokens
    Preparing search index...

    Interface Linter

    A configured linter. Create one with createLinter and reuse it for every document: the config is resolved once, when the linter is created.

    interface Linter {
        config: ResolvedConfig;
        lint(input: unknown): LintResult;
    }
    Index

    The resolved configuration: the rules that run, each with its severity and merged options.

    • Validates against the spec, then runs the configured rules. Never throws on document input.

      Parameters

      • input: unknown

      Returns LintResult