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 utilities that read JSX attribute nodes and report event handler usage using the canonical JSX event prop lists supplied by the dependency.
onClicker, casing typos) from all results. @test@generates
export type EventCategory =
| "clipboard"
| "composition"
| "keyboard"
| "focus"
| "form"
| "mouse"
| "selection"
| "touch"
| "ui"
| "wheel"
| "media"
| "image"
| "animation"
| "transition";
export interface JSXAttribute {
type: "JSXAttribute";
name: { type: "JSXIdentifier" | "JSXNamespacedName"; name: string };
value?: unknown;
}
export function listEventHandlers(attrs: JSXAttribute[]): string[];
export function groupEventHandlers(attrs: JSXAttribute[]): Partial<Record<EventCategory, string[]>>;
export function hasEventCategory(attrs: JSXAttribute[], category: EventCategory): boolean;Provides canonical JSX event handler prop lists and category mappings.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10