Skip to content
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

[Fix] jsx-no-target-blank: allow rel to be an expression #2544

Merged
merged 1 commit into from Jan 23, 2020
Merged

[Fix] jsx-no-target-blank: allow rel to be an expression #2544

merged 1 commit into from Jan 23, 2020

Commits on Jan 15, 2020

  1. [Fix] jsx-no-target-blank: allow rel to be an expression

    Previously this would be an error, since the rel wasn't read:
    
        <a target={"_blank"} href={"//"} rel={"noopener noreferrer"}>
    
    Now this works, so you can enable this rule together with
    `jsx-curly-brace-presence`.
    
    Fixes #2508.
    odinho authored and ljharb committed Jan 15, 2020
    Copy the full SHA
    e69b113 View commit details
    Browse the repository at this point in the history