fix: resolve biome v2 config and lint errors - #471
Merged
Conversation
Migrate `files.ignore` to `files.includes` for Biome v2 compatibility, fix forEach callback return value, unused variable, import ordering, and formatting violations.
Contributor
Greptile SummaryThis PR fixes a Biome v2 configuration incompatibility introduced in PR #453, where Key changes:
The negation glob in Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["bun run lint\n(biome check)"] -->|"Biome v2 reads biome.json"| B{Config valid?}
B -- "Before PR: files.ignore\n(unknown key in v2)" --> C["❌ Deserialization error\nExits immediately\nNo files linted"]
B -- "After PR: files.includes\nwith negation pattern" --> D["✅ Config parsed OK"]
D --> E["Lint all files\nexcept apps/eval/src/dashboard/index.html"]
E --> F["3 lint errors surfaced\n& fixed in this PR"]
F --> G["✅ 0 errors\n(36 pre-existing warnings)"]
Prompt To Fix All With AIThis is a comment left during a code review.
Path: packages/browseros-agent/biome.json
Line: 10
Comment:
**Negation glob is broader than the original `ignore` pattern**
The original `"ignore": ["apps/eval/src/dashboard/index.html"]` matched the file only at that exact path relative to `biome.json`. The new negation `"!**/apps/eval/src/dashboard/index.html"` will exclude any file matching that path at *any* directory depth (e.g. `foo/apps/eval/src/dashboard/index.html` would also be excluded).
This is harmless in practice — there's only one such file — but for strict equivalence you could drop the leading `**/`:
```suggestion
"includes": ["**", "!apps/eval/src/dashboard/index.html"]
```
How can I resolve this? If you propose a fix, please make it concise.Last reviewed commit: 5c6ea3b |
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.
Summary
files.ignore→files.includeswith negation pattern for Biome v2 compatibility (root cause of all lint failures)forEachcallback implicitly returning a value inbuild-consolidated-set.tsvininspect-ui.tschat-service.tsinspect-ui.tsto match Biome v2 formatter rulesContext
PR #453 added
"ignore"tobiome.json, but Biome v2 renamed this key to"includes"(with negation patterns). This madebiome checkexit immediately with a config deserialization error, so no files were being linted at all.Test plan
bun run lintpasses with 0 errors (36 pre-existing warnings remain)🤖 Generated with Claude Code