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

no-unused-vars is configured to ignore args #26

Closed
mdeltito opened this issue Dec 5, 2022 · 1 comment · Fixed by #27
Closed

no-unused-vars is configured to ignore args #26

mdeltito opened this issue Dec 5, 2022 · 1 comment · Fixed by #27
Labels

Comments

@mdeltito
Copy link
Member

mdeltito commented Dec 5, 2022

This is a footgun, and the current setup is likely a holdover from the early stages of introducing this configuration org-wide. We should fix this and enforce after-used.

mdeltito added a commit that referenced this issue Dec 5, 2022
Previously we allowed unused arguments entirely, which can be a footgun
(particularly in Tap tests with `t`). This enforces the `no-unused-vars`
rule for arguments too, allowing unused arguments as long as later args
_are_ used.

Closes: #26
mdeltito added a commit that referenced this issue Dec 5, 2022
Previously we allowed unused arguments entirely, which can be a footgun
(particularly in Tap tests with `t`). This enforces the `no-unused-vars`
rule for arguments too, allowing unused arguments as long as later args
_are_ used.

BREAKING CHANGES: all named arguments and all positional arguments
_after the last used argument_ will now be checked.

Closes: #26
mdeltito added a commit that referenced this issue Dec 6, 2022
Previously we allowed unused arguments entirely, which can be a footgun
(particularly in Tap tests with `t`). This enforces the `no-unused-vars`
rule for arguments too, allowing unused arguments as long as later args
_are_ used.

BREAKING CHANGES: all named arguments and all positional arguments
_after the last used argument_ will now be checked.

Closes: #26
@logdnabot
Copy link
Member

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants