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(linter): ensure config.rules is spread into rules in flat config migration #23263

Merged
merged 3 commits into from
May 9, 2024

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented May 9, 2024

Current Behavior

As part of the eslint flat config migration, the rules from the config being applied via FlatCompat are negated by applying an empty object after the ...config spread in migrated configs.

Expected Behavior

The rules from the config being applied via FlatCompat are spread into the rules object as the first assignment to ensure that they are not negated as part of the flat config migration.

Related Issue(s)

Fixes #23077

Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 9, 2024 11:22am

@JamesHenry JamesHenry marked this pull request as ready for review May 9, 2024 12:03
@JamesHenry JamesHenry requested review from a team as code owners May 9, 2024 12:03
@JamesHenry JamesHenry requested review from meeroslav and Coly010 May 9, 2024 12:03
@JamesHenry JamesHenry enabled auto-merge (squash) May 9, 2024 12:03
@JamesHenry JamesHenry merged commit d5945bd into master May 9, 2024
6 checks passed
@JamesHenry JamesHenry deleted the flat-config-migration-fix branch May 9, 2024 13:06
FrozenPandaz pushed a commit that referenced this pull request May 9, 2024
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint rules not applied after migrating to flat config
3 participants