Skip to content

fix(core): fix extending configs with root field #6625

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

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Jun 29, 2025

Summary

If a configuration that did not contain an explicit root field extended another configuration that did contain a root field, the root field was inherited. This is never what we want, and it tripped up configuration loading pretty badly, although it only manifested when checking a file from stdin.

Fixes #6616.

Test Plan

Added several test cases to show that --stdin-file-path works correctly in various use cases.

@arendjr arendjr requested review from a team June 29, 2025 21:09
Copy link

changeset-bot bot commented Jun 29, 2025

🦋 Changeset detected

Latest commit: d83b634

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project labels Jun 29, 2025
@arendjr arendjr merged commit 19cb475 into biomejs:main Jun 29, 2025
11 checks passed
@github-actions github-actions bot mentioned this pull request Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 extending a config from an npm package causes biome to fallback to default settings
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy