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

Rule proposal: require files that use JSX to have a specific extension #495

Closed
lencioni opened this issue Mar 11, 2016 · 0 comments
Closed
Labels

Comments

@lencioni
Copy link
Collaborator

Some projects want to require that any file that uses JSX to end in .jsx, and others prefer to use .js. It would be nice if there was a rule that enforced this. I think that perhaps it should default to .jsx?

I see this as complimentary to require-extension.

lencioni added a commit to lencioni/eslint-plugin-react that referenced this issue Apr 21, 2016
Some projects want to require that any file that uses JSX to end in
.jsx, and others prefer to use .js. This rule can be used to enforce
this. I see this as complimentary to require-extension.

Fixes jsx-eslint#495
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants