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

Removed the no-redeclare ESLint exclusion #1444

Merged
merged 6 commits into from
Aug 3, 2017
Merged

Conversation

dbemiller
Copy link
Contributor

Type of change

Code style update (formatting, local variables)

Description of change

Removing the no-redeclare ESLint exclusion for #1206

jaiminpanchal27
jaiminpanchal27 previously approved these changes Aug 2, 2017
Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@matthewlane matthewlane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbemiller merged an updated to pubwise analytics which will require an update for this rule too, and one comment for your consideration below, otherwise LGTM

@@ -426,7 +427,7 @@ var IndexExchangeAdapter = function IndexExchangeAdapter() {
_IndexRequestData.targetAggregate = {'open': {}, 'private': {}};

if (!utils.hasValidBidRequest(bidArr[0].params, requiredParams, ADAPTER_NAME)) {
for (var i = 0; i < bidArr.length; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on changing the var to let (in this loop and the one below)? i gets scoped to the block in that case and then no need for the var i declaration on 419

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much better idea ^^

@dbemiller dbemiller merged commit b05a22a into master Aug 3, 2017
@dbemiller dbemiller deleted the fix-no-redeclare branch August 3, 2017 15:46
philipwatson pushed a commit to mbrtargeting/Prebid.js that referenced this pull request Sep 18, 2017
* Removed the no-redeclare exclusion.

* Fixed the actual style error.

* Fixed the linting errors, and changed var to let for cleaner code.
jbAdyoulike pushed a commit to jbAdyoulike/Prebid.js that referenced this pull request Sep 21, 2017
* Removed the no-redeclare exclusion.

* Fixed the actual style error.

* Fixed the linting errors, and changed var to let for cleaner code.
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Removed the no-redeclare exclusion.

* Fixed the actual style error.

* Fixed the linting errors, and changed var to let for cleaner code.
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