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] audit rule: id-length #5268

Closed
kieckhafer opened this issue Jul 3, 2019 · 1 comment
Closed

[ESLINT] audit rule: id-length #5268

kieckhafer opened this issue Jul 3, 2019 · 1 comment
Assignees
Labels
good first issue For issues that a new contributor could likely submit a pull request for without needing much help

Comments

@kieckhafer
Copy link
Member

kieckhafer commented Jul 3, 2019

We have multiple eslint warnings for the id-length rule.

This ticket is to:

  1. Fix all these eslint warnings. This SHOULD mean actually fixing them, but could also mean adding an eslint-disable-line, if applicable.
  2. Change the id-length rule from a warning to an error so we do not introduce new warnings in the future.

As the purpose of this rule is to make sure variable names easily provide context, I propose we add one, maybe two exceptions of short var names that the context is usually a given:

  • i: well known to represent an incrementer.
  • e: I could understand this one going either as error or event, so if the consensus is don't allow e, that's fine

https://eslint.org/docs/2.0.0/rules/id-length#options

@spencern spencern added the good first issue For issues that a new contributor could likely submit a pull request for without needing much help label Jul 8, 2019
@kieckhafer kieckhafer self-assigned this Jul 9, 2019
@kieckhafer
Copy link
Member Author

Closed via #5298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue For issues that a new contributor could likely submit a pull request for without needing much help
Projects
None yet
Development

No branches or pull requests

2 participants