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: don't make Linter a subclass of EventEmitter (refs #9161) #9177

Merged
merged 1 commit into from Aug 30, 2017

Conversation

not-an-aardvark
Copy link
Member

@not-an-aardvark not-an-aardvark commented Aug 28, 2017

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 updates Linter to not be a subclass of EventEmitter. The reasoning for this is described in #9161.

None of the inherited EventEmitter methods are considered part of the public API, but a lot of tests were using them. As a result, this PR is blocked on #9172, #9173, #9174, and #9175, which fix the tests to only use the public API. After those are merged, the tests in this PR will pass.

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

Nothing in particular

@not-an-aardvark not-an-aardvark added blocked This change can't be completed until another issue is resolved chore This change is not user-facing labels Aug 28, 2017
@eslintbot
Copy link

LGTM

@mention-bot
Copy link

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

@not-an-aardvark not-an-aardvark added the do not merge This pull request should not be merged yet label Aug 28, 2017
@eslintbot
Copy link

LGTM

@eslintbot
Copy link

LGTM

@eslintbot
Copy link

LGTM

@not-an-aardvark not-an-aardvark removed blocked This change can't be completed until another issue is resolved do not merge This pull request should not be merged yet labels Aug 30, 2017
@not-an-aardvark not-an-aardvark merged commit 1be5634 into master Aug 30, 2017
@not-an-aardvark not-an-aardvark deleted the linter-no-eventemitter-subclass branch August 30, 2017 18:37
not-an-aardvark added a commit that referenced this pull request Sep 27, 2017
This is a modified version of #9277, which was merged but then reverted later for performance reasons. The performance issues from #9177 have been fixed (`Linter` no longer creates a new map of rules whenever it lints text).

The goal of this change is to progress towards being able to remove the `rules` property from `Linter` instances. Unfortunately, this isn't possible yet, since there are a few other modules that rely on reading the list of defined rules.
not-an-aardvark added a commit that referenced this pull request Oct 28, 2017
This is a modified version of #9277, which was merged but then reverted later for performance reasons. The performance issues from #9177 have been fixed (`Linter` no longer creates a new map of rules whenever it lints text).

The goal of this change is to progress towards being able to remove the `rules` property from `Linter` instances. Unfortunately, this isn't possible yet, since there are a few other modules that rely on reading the list of defined rules.
not-an-aardvark added a commit that referenced this pull request Nov 10, 2017
This is a modified version of #9277, which was merged but then reverted later for performance reasons. The performance issues from #9177 have been fixed (`Linter` no longer creates a new map of rules whenever it lints text).

The goal of this change is to progress towards being able to remove the `rules` property from `Linter` instances. Unfortunately, this isn't possible yet, since there are a few other modules that rely on reading the list of defined rules.
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 27, 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 27, 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 chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants