Skip to content

Commit

Permalink
Fix link to link-type-noreferrer
Browse files Browse the repository at this point in the history
  • Loading branch information
Luccasoli committed Jul 4, 2022
1 parent 7a7bb99 commit 97a6d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-target-blank.md
@@ -1,6 +1,6 @@
# Prevent usage of unsafe `target='_blank'` (react/jsx-no-target-blank)

When creating a JSX element that has an `a` tag, it is often desired to have the link open in a new tab using the `target='_blank'` attribute. Using this attribute unaccompanied by `rel='noreferrer'`, however, is a severe security vulnerability ([see here for more details](https://html.spec.whatwg.org/multipage/links.html#link-type-noopener))
When creating a JSX element that has an `a` tag, it is often desired to have the link open in a new tab using the `target='_blank'` attribute. Using this attribute unaccompanied by `rel='noreferrer'`, however, is a severe security vulnerability ([see here for more details](https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrer))
This rules requires that you accompany `target='_blank'` attributes with `rel='noreferrer'`.

## Rule Details
Expand Down

0 comments on commit 97a6d7e

Please sign in to comment.