Skip to content

Commit

Permalink
Lint: fix react/jsx-no-target-blank error
Browse files Browse the repository at this point in the history
The behavior of this rule changed in jsx-eslint/eslint-plugin-react#2953 and we upgraded the plugin in #2172
  • Loading branch information
mrtnzlml authored and kodiakhq[bot] committed Apr 9, 2021
1 parent e76c8f2 commit 4bcc4b6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sx-design/src/Link/Link.js
Expand Up @@ -18,7 +18,6 @@ type Props = {
export default function Link(props: Props): React.Node {
const href = props.href;
const isExternalLink = /^https?:\/\//.test(href);
/* eslint-disable react/jsx-no-target-blank */
return (
<a
href={href}
Expand All @@ -29,7 +28,6 @@ export default function Link(props: Props): React.Node {
{props.children}
</a>
);
/* eslint-enable react/jsx-no-target-blank */
}

const styles = sx.create({
Expand Down

0 comments on commit 4bcc4b6

Please sign in to comment.