Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Draft
brunocoelho wants to merge1 commit intojsx-eslint:master
base:master
Choose a base branch
Loading
frombrunocoelho:patch-1

Conversation

@brunocoelho
Copy link
Contributor

@brunocoelhobrunocoelho commentedSep 11, 2024
edited
Loading

  • Add missing punctuation.
  • Rewrite a couple of sentences.

* Add missing ponctuation.* Rewrite a couple of sentences.
@codecov
Copy link

codecovbot commentedSep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.63%. Comparing base(07503b7) to head(7b46854).

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.
📢 Have feedback on the report?Share it here.


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).
Copy link
Member

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.
Copy link
Member

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ljharbljharbljharb requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@brunocoelho@ljharb

[8]ページ先頭

©2009-2025 Movatter.jp