Description
Hello, I have been using solid-js for more than two years and recently decided to use this tool.
I event recently made a small patch regarding one of the issues: #164
However, in my process of fixing linting issues I kept finding some cases that are inconsistent and IMHO could be handled differently.
I made a list in the playground to identify all cases: https://playground.solidjs.com/anonymous/29d817a1-ae6e-419e-af52-01ccc5287064
Besides the issues from my patch, I found:
- These two should definitely trigger the solid/reactivity rule
These are the tricky ones. I understand function attributes of Components are expected to be synchronous, as they might access signals/stores, and be called arbitrarily inside the component.
However, at the same time, I believe it is not a stretch to expect attributes named like on[A-Z][a-z_$]*
to also be used as event listeners, even if passed to Components. In most cases, these would actually called as subroutines of event listeners of native elements....
Right now, there are already special rules such as static
attribute prefixes. Wouldn't be valid to also consider Components' function attributes which name looks like on[A-Z][a-z_$]*
to also be especial cases?