| config.mjs |
@typedef {object} PropertyTypeConfig
@property {string[]} allow Allowed keyword values (e.g., "auto", "none", "transparent")
@property {string[]} allowAlias Allowed keyword values that should only be used via local variables
@property {string[]} [tokenTypes] Token categories from semantic-categories.mjs whose tokens are valid
@property {string[]} [aliasTokenTypes] Token categories from semantic-categories.mjs whose tokens are valid only when used through local custom properties
@property {string[]} [allowFunctions] Allowed CSS function names (e.g., "url", "linear-gradient")
@property {boolean} [allowUnits] Whether values with CSS units (e.g., "10px", "50%") are allowed
@property {string[]} [allowedUnits] Specific unit types allowed (e.g., ["em", "ch", "%"]). If provided, only these units are allowed when allowUnits is true
@property {Record<string, string>} [customFixes] Map of raw values to their token replacements for autofix
@property {Record<string, string>} [customSuggestions] Map of raw values to their token replacements for suggested fixes
|
21998 |
- |
| helpers.mjs |
Our namespace used to prefix Mozilla stylelint rules.
|
2379 |
- |
| index.mjs |
|
482 |
- |
| package-lock.json |
|
54041 |
- |
| package.json |
|
381 |
- |
| property-validator.mjs |
Validates whether a given CSS property value complies with allowed design token rules.
@class
@property {PropertyConfig} config Configuration for the given property.
|
9404 |
- |
| reporters |
|
|
- |
| rules |
|
|
- |
| tests |
|
|
- |