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

refactor(lint): replace eslint with standard #2579

Merged
merged 7 commits into from Mar 17, 2017
Merged

refactor(lint): replace eslint with standard #2579

merged 7 commits into from Mar 17, 2017

Conversation

ahmadnassri
Copy link
Contributor

@ahmadnassri ahmadnassri commented Mar 5, 2017

PR Checklist:

  • I have run npm test locally and all tests are passing.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed: [Move to standardjs code style #2577]

PR Description

  • replace eslint with standard
  • make appropriate changes to style to pass a successful lint step

Ahmad Nassri added 4 commits March 4, 2017 20:03
one additional standard lint error after merging with upstream
avoid using the `err` var name if we have no use for it
@mikeal
Copy link
Member

mikeal commented Mar 5, 2017

+1

I just went through doing all this myself and this is actually a bit better.

Copy link
Member

@mikeal mikeal left a comment

Choose a reason for hiding this comment

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

The rest looks solid.

@@ -32,11 +31,11 @@ OAuth.prototype.buildParams = function (_oauth, uri, method, query, form, qsLib)
oa.oauth_signature_method = 'HMAC-SHA1'
}

var consumer_secret_or_private_key = oa.oauth_consumer_secret || oa.oauth_private_key
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't alter these variable names. They map to actual OAuth standard names so we should keep them.

We should stick /* eslint-disable camelcase */ and /* eslint-enable camelcase */ around the code to just disable this for this code block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this has been done ... not sure why github still shows this as unresolved.

remain consistent with OAuth standard, as per @mikeal recommendation
@ahmadnassri
Copy link
Contributor Author

@mikeal updated.

I opted for line-level lint disable, rather than wrapping the whole block, as other variables are declared within that should follow the camelCase restriction (future proofing)

Copy link
Contributor

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

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

@ahmadnassri can you remove the .eslintrc file as well?

LGTM once that's gone, @mikeal do you still have comments?

@ahmadnassri
Copy link
Contributor Author

@FredKSchott done.

@FredKSchott
Copy link
Contributor

Looks like there are conflicts too, can you resolve?

@ahmadnassri
Copy link
Contributor Author

ahmadnassri commented Mar 17, 2017

ah, didn't see on mobile (where I made that last commit) will rebase when on a desktop.

@FredKSchott managed to do it on mobile 📱 🎉

@FredKSchott
Copy link
Contributor

Nice!

Big lint PRs have a tendency to stagnate quickly, will merge asap (the issue discussing this has been open for a while now without any opposition so this shouldn't be catching anyone by surprise)

@FredKSchott FredKSchott merged commit b12a624 into request:master Mar 17, 2017
@FredKSchott
Copy link
Contributor

Thanks @ahmadnassri!

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.

None yet

3 participants