Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.7k
[Docs] Update jsx-no-target-blank.md#3818
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
* Add missing ponctuation.* Rewrite a couple of sentences.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #3818 +/- ##==========================================- Coverage 97.77% 97.63% -0.14%========================================== Files 135 135 Lines 9741 9741 Branches 3558 3558 ==========================================- Hits 9524 9511 -13- Misses 217 230 +13 ☔ View full report in Codecov by Sentry. |
| When creating a JSX elementthat hasan`a` tag,itis often desired tohave the linkopen in a new tab using the`target='_blank'` attribute. Using this attribute unaccompanied by`rel='noreferrer'`, however, is a severe security vulnerability (see[noreferrer docs](https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrer) and[noopener docs](https://html.spec.whatwg.org/multipage/links.html#link-type-noopener) for more details) | ||
| Thisrules requires that you accompany`target='_blank'` attributes with`rel='noreferrer'`. | ||
| When creating a JSX elementwithan`a` tag,the linkis often desired to open in a new tab using the`target='_blank'` attribute. Using this attribute unaccompanied by`rel='noreferrer'`, however, is a severe security vulnerability (see[noreferrer docs](https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrer) and[noopener docs](https://html.spec.whatwg.org/multipage/links.html#link-type-noopener) for more details). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"the link is often desired to open" reads wrong to me; the "it" isn't referring to "the link" but to "a generic person"
| ##When Not To Use It | ||
| Ifyou do not have any external links or forms, you can disable this rule. | ||
| You can disable this rule ifyou do not have any external links or forms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"If x, you can disable this rule" is the form we most typically use in all the rule docs.
Uh oh!
There was an error while loading.Please reload this page.