Open Design Tokens
Reference

Lint rules

Every built-in rule with its options, default severity, and preset membership.

Generated from the rule metadata of the installed package. Configure a rule with "error", "warning", "off", or [severity, options].

RuleDefault severityRecommendedDefault optionsChecks
token-name-lengthwarning\{\}Token names must be within a length range.
group-name-lengthwarning\{\}Group names must be within a length range.
description-lengthwarning\{\}$description text must be within a length range.
naming-conventionwarning\{\}Token and group names follow a naming style (kebab, camel, pascal, snake, or a custom pattern).
require-descriptionwarningEvery token has a $description.
require-explicit-typewarningEvery token declares its own $type instead of inheriting it.
max-alias-depthwarning✔\{"max":5\}Alias chains resolve within a maximum number of hops.
no-unused-tokenswarning✔\{"ignore":[]\}Every token is referenced by at least one alias or $ref, except those matched by ignore patterns.
no-deprecated-aliaswarning✔Tokens do not alias deprecated tokens.
no-empty-groupswarning✔Groups contain at least one token or sub-group.
extensions-allowed-vendorswarning\{"vendors":[]\}Only listed vendor keys may appear in $extensions.
extensions-schemaerror\{"vendors":\{\}\}Vendor blocks in $extensions match a declared shape.

See Linting for configuration and Writing custom rules for the rule API.