-
feat: add token-like-ignored lint rule for silently dropped frontmatter keys (#105)
发布于
2026-06-15 20:27:02 +00:00 | 22 次提交 在此版本后已推送到 mainCloses #100
Add a new
token-like-ignoredlint rule that warns when a top-level YAML
key is not part of the recognized export schema and its value looks like a
design-token map (hex colors, CSS dimensions, or typography property names).
These keys are silently dropped bydesign.md export, misleading users into
thinking their color palette or type scale was exported.- Extend
ParsedDesignSystemwithrawValuesso the parser carries all
raw YAML values through to the model layer - Extend
DesignSystemStatewithunknownKeyValuespopulated byModelHandler - New rule
token-like-ignoredinlinter/rules/token-like-ignored.ts - 10 tests covering hex color maps, font maps, dimension maps, flat scalars,
non-token objects, nested maps, and multi-key scenarios - Register rule in
DEFAULT_RULE_DESCRIPTORSand re-export from public API - Update hardcoded rule-count assertions in
types.test.tsandspec.test.ts
Co-authored-by: Matt Van Horn 455140+mvanhorn@users.noreply.github.com
下载附件
- Extend