Skip to content

Commit

Permalink
components/MapLayout.js - avoid warning about blank link target
Browse files Browse the repository at this point in the history
> warning  Using target="_blank" without rel="noreferrer" is a security risk: see
https://html.spec.whatwg.org/multipage/links.html#link-type-noopener
react/jsx-no-target-blank

This seems to be valid. See jsx-eslint/eslint-plugin-react#2054
  • Loading branch information
Nick Stokoe committed Nov 6, 2020
1 parent 8ff6c6f commit b5e8db5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/MapLayout.js
Expand Up @@ -213,8 +213,10 @@ export default (props) => {
return '';
})}
</Map>
<a href="https://transitionbydesign.org/"
target="_blank" className={mapLayout.tbdLogo}>
{/* eslint-disable-next-line react/jsx-no-target-blank */}
<a target="_blank" rel="noopener referrer"
href="https://transitionbydesign.org/"
className={mapLayout.tbdLogo}>
<img src={tbdLogo} alt="Transition by Design Logo"/>
</a>
</div>
Expand Down

0 comments on commit b5e8db5

Please sign in to comment.