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

[Fix] Don’t check filenames on text input. #667

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Jul 6, 2016

Fixes #662.

var filename = context.getFilename();
if (filename === '<text>') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this comparison could reference a variable or something instead of hard-coding <text>

Copy link
Member Author

Choose a reason for hiding this comment

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

@lencioni
Copy link
Collaborator

lencioni commented Jul 7, 2016

LGTM! I didn't even realize this was a thing.

@yannickcr yannickcr merged commit f235b84 into jsx-eslint:master Jul 8, 2016
@yannickcr
Copy link
Member

Merged, thanks!

@ljharb ljharb deleted the ljharb/jsx_filename_extension branch July 8, 2016 16:39
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.

3 participants