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 expectOnly enabling npm-naming #876

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Dec 14, 2023

When expectOnly is on, we force eslint to only load that one rule, no configs, etc.

But, in #681 I forced npm-naming on via a base config, but forgot to delete that base config in expectOnly. This had the effect of spurious failures when running unrelated packages as npm-naming would be enabled while useEslintrc was disabled, meaning no package's config was being applied.

The fix is to reset the config more.

I want to rewrite this to not be so side-effect-y (e.g. add a getEslintOptions function), but that can come later. Right now, this is just breaking people's PRs.

@sandersn sandersn merged commit efd262c into microsoft:main Dec 14, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants