You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 noopener', however, is a severe
security vulnerability (see here for more details)
This rules requires that you accompany target='_blank' attributes with rel='noreferrer noopener'.
Rule Details
This rule aims to prevent user generated links from creating security vulnerabilities by requiring rel='noreferrer noopener' for external links, and optionally any dynamically generated links.
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
When creating a JSX element that has an
a
tag, it is often desired to havethe link open in a new tab using the
target='_blank'
attribute. Using thisattribute unaccompanied by
rel='noreferrer noopener'
, however, is a severesecurity vulnerability (see here for more details)
This rules requires that you accompany
target='_blank'
attributes withrel='noreferrer noopener'
.Rule Details
This rule aims to prevent user generated links from creating security vulnerabilities by requiring
rel='noreferrer noopener'
for external links, and optionally any dynamically generated links.The following patterns are considered errors:
The following patterns are not considered errors:
The text was updated successfully, but these errors were encountered: