pedro00dk
Solid/reactivity lint rule complains about async custom event handlers
Would changing this regex be enough to fix the issue?
https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/src/rules/reactivity.ts#L853
It seems it is too strict, causing the if condition to fail. The
It then falls a bit later at:
https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/src/rules/reactivity.ts#L914
And the tracked scope is set as "function" instead of "called-function".
Later the code falls here:
https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/src/rules/reactivity.ts#L818
Which causes the error.
3 replies