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

Docs: Adding an example for the spread operator to prefer-spread.md (#7802) #7804

Merged
merged 4 commits into from Dec 22, 2016
Merged

Conversation

butlermd
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[ X ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

Adding an example of using the spread operator per #7802.

Do I need to squash the commits?

@mention-bot
Copy link

@butlermd, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mysticatea, @aubergine10 and @gcochard to be potential reviewers.

@jsf-clabot
Copy link

jsf-clabot commented Dec 21, 2016

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ butlermd
❌ Michael D Butler


Michael D Butler seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@eslintbot
Copy link

Thanks for the pull request, @butlermd! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary needs to begin with a tag (such as Fix: or Update:). Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

@vitorbal
Copy link
Member

Thanks! No need to squash the commits, we can take care of that when we merge.

@butlermd
Copy link
Contributor Author

Sounds good.

@@ -41,6 +41,11 @@ Examples of **correct** code for this rule:
```js
/*eslint prefer-spread: "error"*/

// Using the spread operator

Copy link
Member

Choose a reason for hiding this comment

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

Minor nit: could you get rid of this empty line, as none of the other examples below have one?

@butlermd
Copy link
Contributor Author

Yes, that makes sense. While I'm looking at it, the incorrect examples have an empty line between them while the correct examples don't. Should I also remove those empty lines (33 and 35)?

@eslintbot
Copy link

Thanks for the pull request, @butlermd! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary needs to begin with a tag (such as Fix: or Update:). Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

@platinumazure
Copy link
Member

@butlermd Could you please sign our Contributor License Agreement? We can't accept pull requests unless the committer(s) sign the CLA. Thanks!

@butlermd
Copy link
Contributor Author

I did and when I try to sign it again it says I've already signed. Some issue with the integration?

@platinumazure
Copy link
Member

@butlermd Does the CLA signature match your Git name and e-mail address? Some or all of those have to match, otherwise your signature won't be associated with the commits.

Come by our chat room if you need help looking into that.

@not-an-aardvark
Copy link
Member

not-an-aardvark commented Dec 21, 2016

It looks like the git commit author/email of your most recent commit ("removed excess whitespace per vitorbal's comment") is different from the author/email of the other commits. The bot requires that all the commit authors must have signed the CLA.

Assuming the last commit was also created by you, you could amend it to use the same author/email as before.

@butlermd
Copy link
Contributor Author

Thanks @not-an-aardvark and @platinumazure. Got it figured out. Committed with a key that's associated with my work email. Added the email to my github profile. I think I'll need to make another commit to get the integration to recognize it. Should I make the change to the spacing of the incorrect examples to make it consistent with the correct examples?

@platinumazure
Copy link
Member

@butlermd Note that adding another commit won't fix the CLA issue by itself, because you'll still have the old commit with the wrong name/e-mail. You need to amend that previous commit and force-push. Stop by in our chat if you need help with that.

@eslintbot
Copy link

Thanks for the pull request, @butlermd! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary needs to begin with a tag (such as Fix: or Update:). Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

@vitorbal
Copy link
Member

vitorbal commented Dec 21, 2016 via email

@butlermd
Copy link
Contributor Author

I amended the commit and force pushed. It appears to have fixed the license issue.

@eslintbot
Copy link

Thanks for the pull request, @butlermd! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary needs to begin with a tag (such as Fix: or Update:). Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

Copy link
Member

@not-an-aardvark not-an-aardvark left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@not-an-aardvark not-an-aardvark merged commit b938f1f into eslint:master Dec 22, 2016
@vitorbal
Copy link
Member

Thanks for the contribution, @butlermd!

@butlermd
Copy link
Contributor Author

Glad to help!

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants