-
-
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
jsx-target-no-blank should warn when using JSX spread attributes #2827
Comments
What happens when you enable the |
It still doesn't warn, unfortunately. Maybe because the spread isn't considered an attribute and even if it were, hasDynamicLink's check for attribute === |
I think it's reasonable to either enhance |
in a similar vein, what about when
might be unsafe depending on the value of |
In that example, since one of the branches of the ternary is static and problematic, the rule should be able to warn as well. |
it's my first time contributing. @ljharb, are you the right person to review the PR? |
Yes, sorry for the delay - I’ll try to review it soon. |
@ljharb friendly ping. Let me know if there's anything I can add in the PR description to make it easier to review :) |
At the moment, something like this would not trigger a warning:
Since the rule can't verify whether this will compile to have an
href
that points to an external url, wouldn't it be safer to warn the user? If they are sure that this will never compile to be an external link, they can explicitly disable the rule for this line.The text was updated successfully, but these errors were encountered: