Open Design Tokens
    Preparing search index...

    Function createLinter

    • Creates a linter from a config. The config is resolved here, once, so a mistake in it (unknown rule or preset, bad severity, malformed options) throws at creation rather than on the first document. The returned lint always validates first: rules run only on nodes the validator did not flag with an error, so one spec violation does not cascade into misleading policy findings. lint never throws on document input.

      Parameters

      Returns Linter