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

Update all dependencies #93

Merged
merged 2 commits into from
May 25, 2016
Merged

Update all dependencies #93

merged 2 commits into from
May 25, 2016

Conversation

lemonmade
Copy link
Member

This PR bumps versions on everything, adding a bunch of new rules.

cc/ @bouk @GoodForOneFare

@lemonmade
Copy link
Member Author

Oh, also locked down the dependency versions for eslint-plugin-shopify a little more to avoid some issues we've had with updated packages breaking what we have.

@lemonmade
Copy link
Member Author

Also killed the generator package because it's more trouble than it's worth and I didn't want to fix the tests :P

@@ -88,7 +88,9 @@ module.exports = {
// Disallow whitespace before properties
'no-whitespace-before-property': 'error',
// Require or disallow padding inside curly braces
'object-curly-spacing': 'off',
'object-curly-spacing': ['warn', 'never'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the opposite of our Ruby style. Will this cause unnecessary friction?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just bringing this in line with our actual recommendation, good catch that it doesn't match the Ruby recommendation. I think there is reason enough to have this difference — since JS blocks are denoted with braces, it is helpful to have a different brace style between objects and functions to differentiate them. Ruby doesn't have this problem since any multiline block is usually not brace-delimited, and manipulating hashes is probably less common than in JS. Also, JS's destructuring, especially in parameters, means that the extra space inside of braces ends up making things quite a bit harder to read.

@GoodForOneFare
Copy link
Member

LGTM 👍 Thanks for staying on top of all of these rules and dependencies!

@lemonmade lemonmade merged commit 6c0e1f1 into master May 25, 2016
@lemonmade lemonmade deleted the update-dependencies branch May 25, 2016 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants