chore(biome): point schema to local node_modules#108
Open
frankieyan wants to merge 1 commit into
Open
Conversation
Pin the $schema reference to the installed Biome version under node_modules so it stays in lockstep with @biomejs/biome instead of drifting whenever Renovate bumps the package. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
doistbot
reviewed
May 15, 2026
Member
doistbot
left a comment
There was a problem hiding this comment.
This PR updates the biome.json configuration to point its schema to the local node_modules copy rather than a hardcoded CDN URL. This is a great maintainability improvement that will automatically keep editor autocomplete in lockstep with the installed Biome version and prevent future drift. No issues were flagged during the review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
After #106 bumped
@biomejs/biometo 2.4.15,biome.jsonstill pinned its$schemato the 2.3.11 CDN URL. The mismatch is harmless at runtime (Biome reads the config either way), but editors validating against the stale URL show outdated autocomplete, and every Renovate bump widens the gap.We point
$schemaat the copy undernode_modulesinstead, which is the pattern Biome recommends for keeping the schema in lockstep with the installed version. After this, the reference tracks@biomejs/biomeautomatically and we never have to touchbiome.jsonon a dependency bump.Reference
Test plan
biome.jsonin an editor with Biome support and confirm$schemaresolves to the 2.4.15 schema undernode_modules