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

Chore: Use object-shorthand batch 2 (refs #6407) #6897

Merged
merged 1 commit into from Aug 12, 2016

Conversation

kaicataldo
Copy link
Member

@kaicataldo kaicataldo commented Aug 12, 2016

First batch: #6893

Breaking this up into batches as per the discussion here: #6812

This is the second batch (everything in /lib except /lib/rules). I'll actually enable the rule in the final batch :)

@eslint/eslint-team Will merge this after I get a few pairs of eyes on this. Discussed with @nzakas in Gitter and we decided to get these reviewed and merged without having to wait the full two days. Since this touches so many files, waiting even a few days can lead to merge conflicts.

Ported from the original PR:
Pretty straightforward, aside from two things:

  • Had to move a /* istanbul ignore next */ comment to work for the shorthand notation (see this issue in the Istanbul repo for more info)
  • There's a bug in Node v4.x.x when using get as a shorthand property name. We actually saw a bug report for this very situation and decided against fixing it, so my solution was to just rename the function. Will comment the specific location in the code.

@eslintbot
Copy link

LGTM

initializeConfig: /* istanbul ignore next */ function(callback) {
getConfigForStyleGuide,
processAnswers,
/* istanbul ignore next */initializeConfig(callback) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Istanbul comment fix

@ilyavolodin
Copy link
Member

LGTM. I would hold off on the next batch, since it looks like we will have to do a patch release on Monday, and it's better to do patch releases with minimal amount of changes.

@ilyavolodin ilyavolodin merged commit cd09c96 into master Aug 12, 2016
@kaicataldo kaicataldo deleted the objectshorthand2 branch August 12, 2016 22:34
@kaicataldo
Copy link
Member Author

@ilyavolodin Will do -thanks!

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants