Skip to content

Commit

Permalink
[Docs] jsx-no-target-blank: Add section about overriding for truste…
Browse files Browse the repository at this point in the history
…d links
  • Loading branch information
aschriner authored and ljharb committed Oct 2, 2019
1 parent 6f14e16 commit cc26120
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/rules/jsx-no-target-blank.md
Expand Up @@ -74,6 +74,9 @@ var Hello = <Link target="_blank" to="/absolute/path/in/the/host"></Link>
var Hello = <Link />
```

## When To Override It
For internal links, or links to a "safe" host, you may want to keep the HTTP Referer header for analytics purposes.

## When Not To Use It

If you do not have any external links, you can disable this rule
If you do not have any external links, you can disable this rule.

0 comments on commit cc26120

Please sign in to comment.