-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void-dom-elements-no-children
checking every .createElement and crashing
#1073
Comments
The first problem is intentional, as it looks for anything that could be a createElement call first, then refines. The second is clearly a bug. |
Okay, but what is the point of the first problem being intentional when Why can't it work same way as other rules that use |
Oh, right, I missed something. Fixing the second problem would not warn about But maybe first problem could turn into another issue to prevent some edge cases like Thanks! |
I believe that if the bug was fixed, only React |
I've just updated to v6.10.0 and enabled
void-dom-elements-no-children
.It's crashing with this error:
It happens with this simple code:
So here is the first problem:
.createElement(
is theReact.createElement
.Now testing with the actual
React
:The rule will crash too.
Second problem:
createElement
's arguments (as while typingReact.createElement()
).The text was updated successfully, but these errors were encountered: