-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Disabling ignoring unused vars for _ prefix #1719
Comments
Also, why do we have |
I can submit a PR. |
If you could go through the git blame history for who added it and why, that could help. Or maybe there was no good reason at all. |
Seems like there was no good reason. |
We probably took it here then. Would be nice to learn why Airbnb config specifies this. |
Maybe @ljharb could say! |
The default setting in eslint was Edit: For context this is why it changed from |
@gaearon should the |
Yea. |
see #1763 |
This setting certainly predates my involvement with the Airbnb config. I can't see any reason not to change it to "all" - can someone file an issue, or better, send a PR explaining the rationale? |
@doshisid Do you mind following up with @ljharb and raising an issue in Airbnb ESLint config repo too? |
Fixed by #1763. |
Sure, I'll do it. |
We currently ignore unused vars with
_
prefix, mainly as a workaround for deleting extra properties in...rest
destructuring. However #1705 is a proper fix for this, so I think we should remove the_
rule in the next major bump. This would fix #1387.The text was updated successfully, but these errors were encountered: