jsx-eslint/eslint-plugin-react
Vedi su GitHubDon't warn about react/jsx-no-target-blank when referrerPolicy is used
Open
#2398 aperta il 2 set 2019
enhancementhelp wanted
Metriche repository
- Star
- (8630 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
We have in our code:
<a rel="noopener" referrerPolicy="no-referrer" target="_blank" href={fooURL}>foo</a>
But react/jsx-no-target-blank is complaining about it with:
Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener react/jsx-no-target-blank
Isn't it the same to have rel="noopener" and referrerPolicy="no-referrer" as having rel="noopener noreferrer"?
eslint-plugin-react@7.14.3