Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Rule: jsx-no-target-blank #582

Merged
merged 1 commit into from
May 9, 2016
Merged

Conversation

Gasparila
Copy link
Contributor

@Gasparila Gasparila commented May 2, 2016

New rule to protect against a pretty serious security vulnerability: https://mathiasbynens.github.io/rel-noopener

Using target='_blank' to open a link in a new tab is inherently unsafe and should always be accompanied by rel='noopener noreferrer'

@ljharb ljharb added the new rule label May 3, 2016
@coveralls
Copy link

coveralls commented May 3, 2016

Coverage Status

Coverage increased (+0.02%) to 96.817% when pulling 10c727a on Gasparila:master into 63d33cb on yannickcr:master.

@eddie
Copy link

eddie commented May 5, 2016

Nice :) but why specific to JSX/react?

@dmnd
Copy link
Contributor

dmnd commented May 5, 2016

why specific to JSX/react?

It's definitely specific to JSX. I suppose not necessarily React, though. @eddie can you suggest a more appropriate place to open this PR?

@eddie
Copy link

eddie commented May 5, 2016

@dmnd You are right (specific to jsx).. It was early when I wrote that comment. Here is probably the best place 👍

@yannickcr yannickcr merged commit 59dcd65 into jsx-eslint:master May 9, 2016
@yannickcr
Copy link
Member

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

6 participants