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

var inside for loop with varstmt=true #2627

Closed
g-ortuno opened this issue Aug 20, 2015 · 3 comments
Closed

var inside for loop with varstmt=true #2627

g-ortuno opened this issue Aug 20, 2015 · 3 comments
Labels

Comments

@g-ortuno
Copy link

I set varstmt to true, but when I have some code like this:

for (var test in [1,2,3,4]) {
  // code here
}

JsHint doesn't warm about the use of var

@lukeapage
Copy link
Member

confirmed

// jshint varstmt: true

for (var test in [1,2,3,4]) {
  // code here
}

@lukeapage
Copy link
Member

and still a problem on master

@g-ortuno
Copy link
Author

Huzzah! I'm not familiar with JSHint's release process. Does this get merged into some sort of stable branch or do we have to wait until the next release?

jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Sep 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants