-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
Add ThisExpression
variants to JSXElementName
and JSXMemberExpressionObject
#5352
Comments
Before doing this, we can do some preparation work here oxc/crates/oxc_transformer/src/es2015/arrow_functions.rs Lines 134 to 170 in 93634bc
We should mutate node instead of mutating the node property. Because after |
I think we were having the same thought simultaneously! #5356 (review) |
#5223 did the bulk of the work of revamping
JSXElementName
(#3528). Only thing that's missing is to add:JSXElementName::ThisExpression
JSXMemberExpressionObject::ThisExpression
A couple of notes:
Arrow functions transform
This code is currently broken:
oxc/crates/oxc_transformer/src/es2015/arrow_functions.rs
Lines 140 to 156 in f052a6d
We can fix after we have the
ThisExpression
variants.Linter
Once this is done, we can remove these lines from linter.
oxc/crates/oxc_linter/src/rules/react/jsx_no_undef.rs
Lines 60 to 64 in f052a6d
The text was updated successfully, but these errors were encountered: