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

eslint: enable rule: @typescript-eslint/no-unused-vars #3247

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Jun 6, 2024

When enabling this rule, it's recommended to also disable the standard no-unused-vars rule. Although no-unused-vars is not currently enabled, it seems helpful to explicitly disable it here.

See: https://typescript-eslint.io/rules/no-unused-vars/

},
"rules": {
"@typescript-eslint/no-unused-vars": ["error", {
"args": "none"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused arguments are declared in a lot of places, and it could be argued they convey information about APIs being overwritten, or opportunities for extension e.g.

c.once('data', function (data) {

handleError(err, connection) {

When enabling this rule, it's recommended to also *disable* the standard `no-unused-vars` rule.  Although `no-unused-vars` is not currently enabled, it seems helpful to explicitly disable it here.

See: https://typescript-eslint.io/rules/no-unused-vars/
@alxndrsn alxndrsn force-pushed the eslint-no-unused branch from 6387a9f to 0bedff4 Compare June 6, 2024 07:26
@brianc
Copy link
Owner

brianc commented Jun 18, 2024

hey nice! sorry for the delay - was in colorado for some family visiting. back now. merging! thanks for doing this!!

@brianc brianc merged commit 83a0e3e into brianc:master Jun 18, 2024
5 checks passed
@alxndrsn alxndrsn deleted the eslint-no-unused branch June 19, 2024 09:21
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.

3 participants