jsx-eslint/eslint-plugin-react
Ver no GitHubDon't warn about react/jsx-no-target-blank when referrerPolicy is used
Open
#2.398 aberto em 2 de set. de 2019
enhancementhelp wanted
Métricas do repositório
- Stars
- (8.630 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
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