Skip to content

Commit e672316

Browse files
gebshljharb
authored andcommitted
[Docs] jsx-no-target-blank: adjust options description
1 parent 7b3d728 commit e672316

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
2525

2626
### Changed
2727
* [Tests] test on the new babel eslint parser ([#3113] @ljharb)
28+
* [Docs] [`jsx-no-target-blank`]: adjust options description ([#3214] @gebsh)
2829

30+
[#3214]: https://github.com/yannickcr/eslint-plugin-react/pull/3214
2931
[#3122]: https://github.com/yannickcr/eslint-plugin-react/pull/3122
3032
[#3113]: https://github.com/yannickcr/eslint-plugin-react/pull/3113
3133
[#3112]: https://github.com/yannickcr/eslint-plugin-react/pull/3112

docs/rules/jsx-no-target-blank.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ This rule aims to prevent user generated link hrefs and form actions from creati
1414
"react/jsx-no-target-blank": [<enabled>, {
1515
"allowReferrer": <allow-referrer>,
1616
"enforceDynamicLinks": <enforce>,
17+
"warnOnSpreadAttributes": <warn>,
1718
"links": <boolean>,
1819
"forms": <boolean>,
1920
}]
2021
...
2122
```
2223

23-
* `allowReferrer`: optional boolean. If `true` does not require `noreferrer` (i. e. `noopener` alone is enough, this leaves IE vulnerable). Defaults to `false`.
2424
* `enabled`: for enabling the rule.
25-
* `enforceDynamicLinks`: optional string, 'always' or 'never'
25+
* `allowReferrer`: optional boolean. If `true` does not require `noreferrer` (i. e. `noopener` alone is enough, this leaves IE vulnerable). Defaults to `false`.
26+
* `enforceDynamicLinks`: optional string, `'always'` or `'never'`.
2627
* `warnOnSpreadAttributes`: optional boolean. Defaults to `false`.
27-
* `enforceDynamicLinks` - enforce: optional string, 'always' or 'never'
28-
* `links` - Prevent usage of unsafe `target='_blank'` inside links, defaults to `true`
29-
* `forms` - Prevent usage of unsafe `target='_blank'` inside forms, defaults to `false`
28+
* `links`: prevent usage of unsafe `target='_blank'` inside links, defaults to `true`.
29+
* `forms`: prevent usage of unsafe `target='_blank'` inside forms, defaults to `false`.
3030

3131
### `enforceDynamicLinks`
3232

0 commit comments

Comments
 (0)