Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

add eslint rule for no-target-blank in jsx, fix occurrences #477

Merged
merged 1 commit into from
Mar 20, 2017

Conversation

earnubs
Copy link
Contributor

@earnubs earnubs commented Mar 14, 2017

<a target=_blank /> is considered a security risk, we don't really have user generated content but doesn't hurt to have the rule.

More about rel=noopener here: https://mathiasbynens.github.io/rel-noopener/

Lint rule is defined here: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md

@@ -129,7 +134,14 @@ const Caption = (props) => {
<p><ErrorIcon /> Sorry, that name is already taken. Try a different name.</p>
<p className={ styles.helpText }>
If you think you should have sole rights to the name,
you can <a href={ FILE_NAME_CLAIM_URL } target='_blank'>file a claim</a>.
you can
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need {' '} here too.

@earnubs earnubs merged commit f9044c0 into master Mar 20, 2017
@earnubs earnubs deleted the jsx-no-target-blank branch March 20, 2017 10:53
earnubs added a commit that referenced this pull request Mar 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants