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: JavaScript Expression spacing #1007

Closed
neciu opened this issue Dec 21, 2016 · 2 comments
Closed

Rule proposal: JavaScript Expression spacing #1007

neciu opened this issue Dec 21, 2016 · 2 comments

Comments

@neciu
Copy link

neciu commented Dec 21, 2016

This rule should force adding/removing of spaces in JavaScript Expressions.

Given the value of the rule is always:

  1. Is wrong
...
  return (
    <div>
      {children}
    </div>
  );
...
  1. Is ok
...
  return (
    <div>
      { children }
    </div>
  );
...

Given the value of the rule is never:

  1. Is ok
...
  return (
    <div>
      {children}
    </div>
  );
...
  1. Is wrong
...
  return (
    <div>
      { children }
    </div>
  );
...
@ljharb
Copy link
Member

ljharb commented Dec 21, 2016

This is a duplicate of #857 (comment)

@fatfisz
Copy link
Contributor

fatfisz commented Jun 11, 2017

This is fixed in #1177.

@ljharb ljharb closed this as completed Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants