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

Style: Removed ESLint rule prohibiting for...in statements #35

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

tyearke
Copy link
Contributor

@tyearke tyearke commented Apr 11, 2017

Description

This pull request removes the ESLint rule prohibiting for...in statements in JavaScript code.

If accepted, similar pull requests will be opened for other XDMoD repos.

Motivation and Context

Use of for...in with proper precautions (e.g. checking for prototype properties, not using it on objects with deep prototype chains where performance matters) results in code that is easier to write and read than alternative methods.

Tests Performed

Verified that ESLint still worked with the new config file.

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tyearke tyearke added the qa label Apr 11, 2017
@tyearke tyearke added this to the v6.6.0 milestone Apr 11, 2017
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 this pull request may close these issues.

3 participants