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

chore: enforce spacing around braces #5700

Merged
merged 1 commit into from Apr 21, 2020
Merged

Conversation

jackfranklin
Copy link
Collaborator

@jackfranklin jackfranklin commented Apr 21, 2020

The codebase was incredibly inconsistent with the use of spacing around
curly braces, e.g.:

// this?
const a = {b: 1}
// or?
const a = { b: 1 }

This extended into import statements also. I don't have a strong
preference for each one but I feel strongly that we should be consistent
so this PR enforces the rule.

@mathiasbynens
Copy link
Member

The Google JS style guide says "no spaces" but I'm fine with either option. Agreed that what matters is that we have consistency, not what the particular style is.

@jackfranklin
Copy link
Collaborator Author

The Google JS style guide says "no spaces"

Thinking about it, that's what Clang (and therefore DevTools) does, so I'll swap and do that one.

The codebase was incredibly inconsistent with the use of spacing around
curly braces, e.g.:

```
// this?
const a = {b: 1}
// or?
const a = { b: 1 }
```

This extended into import statements also. Google's styleguide is no
spacing, so we're going with that.
@mathiasbynens mathiasbynens changed the title chore: enforce spacing around object curlys chore: enforce spacing around braces Apr 21, 2020
@jackfranklin jackfranklin merged commit e3922ea into master Apr 21, 2020
@jackfranklin jackfranklin deleted the enforce-curly-spacing branch April 21, 2020 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants