Skip to content

Commit

Permalink
docs: clarify docs for svelte/no-target-blank (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jan 3, 2024
1 parent d22f6e9 commit 26a3823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/no-target-blank.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ since: 'v0.0.4'
## :book: Rule Details

This rule disallows using `target="_blank"` attribute without `rel="noopener noreferrer"` to avoid a security vulnerability([see here for more details](https://mathiasbynens.github.io/rel-noopener/)).
This rule disallows using `target="_blank"` attribute without `rel="noopener noreferrer"` to avoid a security vulnerability in legacy browsers where a page can trigger a navigation in the opener regardless of origin ([see here for more details](https://mathiasbynens.github.io/rel-noopener/)).

<ESLintCodeBlock>

Expand Down Expand Up @@ -46,8 +46,8 @@ This rule disallows using `target="_blank"` attribute without `rel="noopener nor
}
```

- `allowReferrer` ... If `true`, does not require noreferrer.default `false`
- `enforceDynamicLinks ("always" | "never")` ... If `always`, enforces the rule if the href is a dynamic link. default `always`.
- `allowReferrer` ... If `true`, allows the `Referrer` header to be sent by not requiring `noreferrer` to be present. default `false`
- `enforceDynamicLinks ("always" | "never")` ... If `always`, enforces the rule if the href is a dynamic link. default `always`

### `{ allowReferrer: false }` (default)

Expand Down

0 comments on commit 26a3823

Please sign in to comment.