AST utility module for statically analyzing JSX
50
Pending
Does it follow best practices?
Impact
50%
1.42xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
Build a helper that returns the names of JSX attributes from a parsed AST node, preserving namespace prefixes when they exist.
<svg:path focusable="false" xlink:href="#icon" />, the helper returns ["focusable", "xlink:href"] in source order. @testxml:lang stays exactly that). @testattributes array are ignored without throwing or adding placeholders to the result. @test@generates
export function extractAttributeNames(
node: JSXOpeningElement,
): string[];Utilities for inspecting JSX AST nodes and reading attribute names with namespace support.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10