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 breaks the convention #11

Closed
bisubus opened this issue Aug 3, 2019 · 0 comments
Closed

no-unused-vars breaks the convention #11

bisubus opened this issue Aug 3, 2019 · 0 comments

Comments

@bisubus
Copy link

bisubus commented Aug 3, 2019

Current no-unused-vars rule forces to use _ parameter name to identify it as unused. It clashes with jQuery and forces a dev to destroy parameter name, even if it's temporary unused. The existing convention is to start the parameter with an underscore, like _foo, i.e. it should be ^_, not ^_$. The convention is followed by TS itself and other tools.

It's a great default ruleset in other respects.

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

No branches or pull requests

1 participant