Skip to content

Commit fc95c1c

Browse files
himerusclaude
andcommitted
feat: wire auto-fix suggestions into theme validation
Theme compatibility issues in validate_component_code now include fix suggestions via tryAutoFix, matching how shadow-dom and token-fallback issues work. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1655209 commit fc95c1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/handlers/validation-summary.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,14 @@ export function summarizeValidation(result: ValidateComponentCodeResult): Valida
136136

137137
if (result.themeCompat) {
138138
for (const issue of result.themeCompat.issues) {
139+
const original = `${issue.property}: ${issue.value};`;
140+
const fix = tryAutoFix('theme-compat', issue.rule, original, issue.property);
139141
issues.push({
140142
severity: 'warning',
141143
category: 'themeCompat',
142144
message: issue.message,
143145
line: issue.line,
146+
...(fix ? { fix } : {}),
144147
});
145148
}
146149
}

0 commit comments

Comments
 (0)