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

Documentation: react/jsx-filename-extension can break checks without --ext arguments #1402

Open
bassettsj opened this issue May 4, 2017 · 1 comment

Comments

@bassettsj
Copy link

Adding the react/jsx-filename-extension is just fine as a rule, but adding some direction that you will need to add the --ext=js --ext=jsx arguments to the eslint cli for it to work. It might cause issues for users who are not aware of this when they start using the eslint-preset-airbnb package. Adding a line to the README might be helpful, and I would be happy to do so. 😄

Ideally, you could configure this as an option in .eslintrc but that is not currently available:
eslint/eslint#801

@ljharb
Copy link
Collaborator

ljharb commented May 4, 2017

That sounds like a great improvement to the docs, thanks!

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