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: jsx-equals-spacing #394

Closed
peet opened this issue Jan 14, 2016 · 1 comment
Closed

Rule Proposal: jsx-equals-spacing #394

peet opened this issue Jan 14, 2016 · 1 comment
Labels

Comments

@peet
Copy link
Contributor

peet commented Jan 14, 2016

Simply a rule to enforce or disallow spaces around the = in JSX elements

"jsx-equals-spacing": [2, "always" || "never"]

Warning when set to "never":

<Hello name = {firstname} />;

Warning when set to "always":

<Hello name={firstname} />;

Defaults to "never" to match Facebook examples

ryym added a commit to ryym/eslint-plugin-react that referenced this issue Jan 22, 2016
ryym added a commit to ryym/eslint-plugin-react that referenced this issue Jan 22, 2016
@peet
Copy link
Contributor Author

peet commented Jan 23, 2016

Thanks!

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