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

Update: Remove dependency on is-resolvable #11128

Merged
merged 1 commit into from Nov 29, 2018

Conversation

mattgrande
Copy link

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

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

As is-resolvable is essentially a fancy if statement, and it is only used in one file, it seems unnecessary to include it as a dependency.

(I've become paranoid due to what recently happened to event-stream and other similar issues)

What changes did you make? (Give an overview)

Brought the code for is-resolvable into eslint, and slightly simplified it. Remove the dependency on is-resolvable.

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

As is-resolvable is essentially a fancy if statement, and it is only used in one file, it seems unnecessary to include it as a dependency.

(I've become paranoid due to what recently happened to [event-stream](dominictarr/event-stream#116) and other similar issues)
@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Nov 26, 2018
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! (We normally like to wait 2-3 days before merging non-trivial changes in, so I'll be leaving this open for a bit.)

@platinumazure platinumazure added core Relates to ESLint's core APIs and features chore This change is not user-facing and removed triage An ESLint team member will look at this issue soon labels Nov 26, 2018
Copy link
Member

@aladdin-add aladdin-add 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!

@aladdin-add aladdin-add merged commit 5d451c5 into eslint:master Nov 29, 2018
@aladdin-add
Copy link
Member

merged, thanks for contributing!

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators May 29, 2019
@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 May 29, 2019
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 core Relates to ESLint's core APIs and features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants