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

chore: add underscore prefix to unused variables #940

Merged
merged 2 commits into from May 30, 2021

Conversation

magurotuna
Copy link
Member

@magurotuna magurotuna commented May 29, 2021

The current published version of deno_lint doesn't claim, but the next version is going to check if variables declared in for-of and for-in are used or not.
denoland/deno_lint#697
So I added underscore prefix to such variables, in order to tell the linter that it's intentional to declare unused ones.

As a side note: we should remove ESLint disable directives because the linter doesn't support them since denoland/deno#8226. I'm working on this. Done in #941

@magurotuna
Copy link
Member Author

Maybe blocked by #938

Copy link
Contributor

@wperron wperron left a comment

Choose a reason for hiding this comment

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

Indeed blocked by #938, otherwise looks good

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

@magurotuna Thanks!

@kt3k kt3k merged commit 09adb91 into denoland:main May 30, 2021
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.

None yet

3 participants