check_event_usage
Validate event usage in web component code by checking against the Custom Elements Manifest. Detects React onXxx props, misspelled events, and framework-specific binding mistakes for React, Vue, and Angular.
Instructions
Validates event listener patterns against a component CEM — catches React onXxx props for custom events (won't work), unknown event names, misspelled events, and framework-specific binding mistakes. Supports React, Vue, and Angular patterns.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| codeText | Yes | The code (JSX, template, etc.) to validate event usage in. | |
| tagName | Yes | The custom element tag name to validate against (e.g. "sl-button"). | |
| framework | No | Optional framework hint. Enables framework-specific checks (e.g. React onXxx prop detection). |