| config.mjs |
@typedef {object} PropertyTypeConfig
@property {string[]} allow Allowed keyword values (e.g., "auto", "none", "transparent")
@property {string[]} [tokenTypes] Token categories from tokens-table.mjs whose tokens are valid
@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 {Record<string, string>} [customFixes] Map of raw values to their token replacements for autofix
|
9920 |
| data.mjs |
|
5967 |
| helpers.mjs |
Allows rules to access the tokens table without hard-coding the import path in multiple files.
@returns {object}
|
15900 |
| index.mjs |
eslint-env node |
505 |
| 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.
|
5814 |
| referenceColors.mjs |
The list of named colors in CSS.
|
4618 |
| reporters |
|
|
| rules |
|
|
| tests |
|
|