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: Ensure environments in overrides respect files patterns #126

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Aug 4, 2023

Prior to this patch, if there was an environment enabled inside of an override config then it was translated into a universal config and always applied to every file that was linted. This change ensures that the files pattern is kept when environments are used inside of overrides, so those environments only apply when there is a match.

Fixes #125

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Aug 4, 2023
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

LGTM. I'll leave it open for others to reveiw.

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@mdjermanovic mdjermanovic 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!

@mdjermanovic mdjermanovic merged commit 6745421 into main Aug 5, 2023
14 checks passed
@mdjermanovic mdjermanovic deleted the issue125 branch August 5, 2023 22:17
@github-actions github-actions bot mentioned this pull request Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Bug: FlatCompat.config doesn't work with overrides
4 participants