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: remove dead code from prefer-const #8683

Merged
merged 1 commit into from Jun 3, 2017

Conversation

not-an-aardvark
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[x] Other, please explain:

What changes did you make? (Give an overview)

This code was added to work around a bug in acorn (acornjs/acorn#487), which has since been fixed.

Is there anything you'd like reviewers to focus on?

Nothing in particular

This code was added to work around a bug in acorn (acornjs/acorn#487), which has since been fixed.
@not-an-aardvark not-an-aardvark added the chore This change is not user-facing label Jun 3, 2017
@mention-bot
Copy link

@not-an-aardvark, thanks for your PR! By analyzing the history of the files in this pull request, we identified @mysticatea, @NickHeiner and @vitorbal to be potential reviewers.

@eslintbot
Copy link

LGTM

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

This change LGTM, but I want to make sure our dependency specifiers will definitely prevent this from recurring for our users.

  1. Does latest espree specify a version range for acorn where this is definitely fixed in all specified versions?
  2. Does the minimum version of espree allowed by ESLint's specified version range point to a version of espree that consumes acorn versions which definitely have this fixed?

If the answer to either of those questions is no or unsure, then I think we should potentially do one or both of the below:

  1. Upgrade the Acorn version specification in espree and cut a patch release
  2. Upgrade the espree version specification in ESLint as part of this PR

If you believe that the minimum supported espree points to a minimum supported acorn which has the Acorn bug fixed, ping me and I'll switch to approve.

@not-an-aardvark
Copy link
Member Author

@platinumazure We depend on espree@^3.4.2. Espree 3.4.2 depends on acorn@^5.0.1. acornjs/acorn#487 was fixed in Acorn 5.0.0.

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

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 chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants