Skip to content

Conversation

@geek
Copy link
Member

@geek geek commented Jun 10, 2015

Remove IE8 rule and use broader no-shadow with a warning

Fixes #369

@geek geek added the feature New functionality or improvement label Jun 10, 2015
@geek geek added this to the 5.11.0 milestone Jun 10, 2015
@hueniverse
Copy link
Contributor

What's with all the forEach replacements?

@geek
Copy link
Member Author

geek commented Jun 12, 2015

@hueniverse I was wondering what you would say about those :)

We were using them elsewhere in the code, and I wanted to be a little more consistent and contain the variables in the scope a little more.

@hueniverse
Copy link
Contributor

Ok. Was just unrelated to the issue being fixed.

@hueniverse
Copy link
Contributor

What's with all the done -> finished?

@geek
Copy link
Member Author

geek commented Jun 13, 2015

In the tests that was to avoid shadowing done, however, it may be more appropriate as next... do you have a preference?

@hueniverse
Copy link
Contributor

done should be the actual test where next or testDone should be the code being tested.

@geek
Copy link
Member Author

geek commented Jun 18, 2015

@hueniverse I updated the test script tests to use testDone instead of finished, see what you think.

hueniverse pushed a commit that referenced this pull request Jun 19, 2015
Use no-shadow lint rule
@hueniverse hueniverse merged commit 69e126b into hapijs:master Jun 19, 2015
jagoda added a commit to jagoda/vision that referenced this pull request Jul 7, 2015
Lab enabled the [no-shadow rule](http://eslint.org/docs/rules/no-shadow.html)
in hapijs/lab#371 (with exceptions provided by hapijs/lab#379).
This change corrects lint errors created by variable shadowing.
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no-catch-shadow

2 participants