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

Fix: CLIEngine#addPlugin reset lastConfigArrays (fixes #12425) #12468

Merged
merged 1 commit into from Oct 24, 2019

Conversation

mysticatea
Copy link
Member

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

[X] Bug fix: #12425

What changes did you make? (Give an overview)

This PR fixes CLIEngine#addPlugin() method to reset lastConfigArrays internal state as well. Because CLIEngine#getRules() gets plugin rules from the lastConfigArrays internal state, this reset is needed.

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

Nothing in particular.

@mysticatea mysticatea added bug ESLint is working incorrectly core Relates to ESLint's core APIs and features accepted There is consensus among the team that this change meets the criteria for inclusion labels Oct 20, 2019
@platinumazure
Copy link
Member

platinumazure commented Oct 23, 2019

@mysticatea Would you like to merge this, or would you prefer that another team member review this?

@mysticatea
Copy link
Member Author

Thank you for review. I'll merge this.

@mysticatea mysticatea merged commit 0f6d0dc into master Oct 24, 2019
@mysticatea mysticatea deleted the issue12425 branch October 24, 2019 21:16
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Apr 23, 2020
@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 Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly core Relates to ESLint's core APIs and features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get plugin rules added by cli.addPlugin
2 participants