mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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:
co-authored by
Claude Opus 4.6
parent
01c4c60848
commit
c3984f74d1
@@ -88,7 +88,7 @@ export function extractDataAttrs(
|
||||
// Common naming patterns for data attributes exports
|
||||
const possibleNames = [`${componentName}DataAttrs`, `${componentName}DataAttributes`];
|
||||
|
||||
function visit(node: ts.Node) {
|
||||
const visit = (node: ts.Node) => {
|
||||
// Look for variable declaration like: export const PlayButtonDataAttrs = { ... }
|
||||
if (ts.isVariableStatement(node)) {
|
||||
for (const decl of node.declarationList.declarations) {
|
||||
@@ -136,7 +136,7 @@ export function extractDataAttrs(
|
||||
}
|
||||
|
||||
ts.forEachChild(node, visit);
|
||||
}
|
||||
};
|
||||
|
||||
visit(sourceFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user