Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Conform to ESLint code styles #4435

Merged
merged 1 commit into from Oct 20, 2017
Merged

Conform to ESLint code styles #4435

merged 1 commit into from Oct 20, 2017

Conversation

stephaniehobson
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Sep 19, 2017

Codecov Report

Merging #4435 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4435   +/-   ##
=======================================
  Coverage   94.72%   94.72%           
=======================================
  Files         261      261           
  Lines       22847    22847           
  Branches     1673     1673           
=======================================
  Hits        21642    21642           
  Misses        981      981           
  Partials      224      224

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 023dec3...87708a8. Read the comment docs.

Copy link

@schalkneethling schalkneethling left a comment

Choose a reason for hiding this comment

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

Couple of items. Mostly nits.

mdn.Notifier.growl('You can now use ' + matchStored + ' to sign in to this MDN profile.', { duration: 0, closable: true }).success();
});
localStorage.removeItem(matchKey);
catch (e) {

Choose a reason for hiding this comment

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

Did eslint no complain about the unused variable e? Safe to remove as we are not using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think if we don't use it it will bubble up. The linter did not object.

var matchStored = localStorage.getItem(matchKey);

// The user is on the registration page and has been notified that
// there is an MDN profile with a matching email address.

Choose a reason for hiding this comment

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

Nit: For multi line comments we should use the /** The name of the module. */ JSDoc standard. This will then also match how comments are done on Bedrock.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't write or edit the comment, not sure why it shows up as a change. I'd like to leave it alone and just make the linter happy.

var serviceCurrent = $(doc.body).data(serviceKey);

try {

Choose a reason for hiding this comment

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

Nit: extra empty line

else if(!serviceCurrent && serviceStored) {
localStorage.removeItem(serviceKey);
$doc.trigger('mdn:logout', [ serviceStored ]);
catch (e) {

Choose a reason for hiding this comment

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

Nit: unused parameter e

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think if we don't use it it will bubble up. The linter did not object.

if(!isRemove) listItems.push(li);
if(!isRemove) {
listItems.push(li);
}

// Cycling through each list item,

Choose a reason for hiding this comment

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

Nit: Could this comment be more descriptive? Perhaps we simply do not need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't write or edit the comment, not sure why it shows up as a change. I'd like to leave it alone and just make the linter happy.

@stephaniehobson
Copy link
Contributor Author

Updated. I'd like to merge to make the linter happy without updating the comments, they can be addressed later.

Copy link

@schalkneethling schalkneethling left a comment

Choose a reason for hiding this comment

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

r+ ⌨️

@schalkneethling schalkneethling merged commit 46e328b into master Oct 20, 2017
@stephaniehobson stephaniehobson deleted the 401291-lint branch November 1, 2017 22:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants