# solid/event-handlers Enforce naming DOM element event handlers consistently and prevent Solid's analysis from misunderstanding whether a prop should be an event handler. This rule is **a warning** by default. [View source](../src/rules/event-handlers.ts) ยท [View tests](../test/rules/event-handlers.test.ts) See [this issue](https://github.com/solidjs-community/eslint-plugin-solid/issues/23) for rationale. ## Rule Options Options shown here are the defaults. ```js { "solid/event-handlers": ["warn", { // if true, don't warn on ambiguously named event handlers like `onclick` or `onchange` ignoreCase: false, // if true, warn when spreading event handlers onto JSX. Enable for Solid < v1.6. warnOnSpread: false, }] } ``` ## Tests ### Invalid Examples These snippets cause lint errors, and some can be auto-fixed. ```js let el =
; let el =