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

Change no-unused-vars 'args' from none to all to show warning on dest… #4187

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Change no-unused-vars 'args' from none to all to show warning on dest… #4187

merged 1 commit into from
Mar 20, 2018

Conversation

goncy
Copy link
Contributor

@goncy goncy commented Mar 20, 2018

Issue: #4186

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@andriijas andriijas merged commit e76f360 into facebook:next Mar 20, 2018
@andriijas
Copy link
Contributor

With argument destructing increasing in popularity this makes sense. Thanks

@Timer
Copy link
Contributor

Timer commented Mar 20, 2018

@andriijas please always tag a pull request and assign it to a milestone so we know what release it belongs in.

@Timer Timer added this to the 2.0.0 milestone Mar 20, 2018
@andriijas
Copy link
Contributor

This change has been reverted. I was under the impression this change only affected object destructing in arguments and after consideration among maintainers we decided to stick with the previous setting for now. Sorry about any inconvenience.

@NMinhNguyen
Copy link
Contributor

@andriijas seeing as this has been reverted, do you think it's worth reverting https://github.com/facebook/create-react-app/pull/4193/files#diff-79a994d7bd8a0e363c3337f8c1bddc94R31 and https://github.com/facebook/create-react-app/pull/4193/files#diff-9cf9a22a4fe9ace4e45624edd93709c7R16 too? Personally, I think they were clearer/better that way (as in with the frames function argument and without the eslint-disable-line) 🙂

@Timer
Copy link
Contributor

Timer commented Mar 25, 2018

I think so @NMinhNguyen ! Can you send a PR reverting that?

@NMinhNguyen
Copy link
Contributor

@Timer here you go! #4211

@goncy goncy deleted the unused-vars-not-showing-on-destructured-objects branch March 26, 2018 12:49
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants