fix(site): add astro check CI and reduce errors/hints (#1109)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-04-22 10:18:05 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 01c4c60848
commit c3984f74d1
52 changed files with 385 additions and 339 deletions
@@ -42,7 +42,7 @@ export function extractCSSVars(filePath: string, program: ts.Program, componentN
const vars: Array<{ name: string; description: string }> = [];
const expectedName = `${componentName}CSSVars`;
function visit(node: ts.Node) {
const visit = (node: ts.Node) => {
if (ts.isVariableStatement(node)) {
for (const decl of node.declarationList.declarations) {
if (!ts.isIdentifier(decl.name) || decl.name.text !== expectedName || !decl.initializer) {
@@ -74,7 +74,7 @@ export function extractCSSVars(filePath: string, program: ts.Program, componentN
}
ts.forEachChild(node, visit);
}
};
visit(sourceFile);