Skip to content

chore(browser): Exclude WXT build output from biome - #1800

Merged
yamadashy merged 1 commit into
mainfrom
chore/biome-ignore-browser-output
Aug 11, 2026
Merged

chore(browser): Exclude WXT build output from biome#1800
yamadashy merged 1 commit into
mainfrom
chore/biome-ignore-browser-output

Conversation

@yamadashy

Copy link
Copy Markdown
Owner

Adds browser/.output and browser/.wxt to biome's exclude list.

Why

biome.json includes browser/** and excludes browser/dist and browser/packages, but not .output/ or .wxt/. Both sit in the same # Build output block of browser/.gitignore as dist/ and packages/ — they are WXT's output from wxt build / wxt zip and wxt prepare.

The result: after running a browser-extension build, root npm run lint fails with 14 errors from browser/.output/{edge-mv3,firefox-mv2}/background.js — minified bundles nobody edits. CI never sees this because it does not build the extension before linting, so it only bites locally.

.wxt/ is not failing today; it is excluded for the same reason, so a wxt prepare artifact cannot reintroduce the problem.

Verification

npm run lint goes from 14 errors to exit 0 with the extension build present.

Checklist

  • Run npm run test — not run; config-only change, no source touched
  • Run npm run lint — exit 0

🤖 Generated with Claude Code

intent(lint): `npm run lint` failed locally with 14 errors from minified WXT build output that no one edits
decision(lint): mirror browser/.gitignore in biome.json — `.output/` and `.wxt/` sit in the same "# Build output" block as `dist/` and `packages/`, but only the latter two were excluded
constraint(lint): `.wxt/` is not failing today; it is excluded for the same reason `.output/` is, so a `wxt prepare` artifact cannot reintroduce this

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b80d1847-97eb-4307-bfbc-fc4643979a11

📥 Commits

Reviewing files that changed from the base of the PR and between f65142f and 3696ffd.

📒 Files selected for processing (1)
  • biome.json

📝 Walkthrough

Walkthrough

The Biome configuration now excludes browser/.output and browser/.wxt.

Changes

Biome configuration

Layer / File(s) Summary
Configure generated directory exclusions
biome.json
Biome now excludes browser/.output and browser/.wxt.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Biome configuration change and the WXT build output being excluded.
Description check ✅ Passed The description includes a summary, rationale, verification result, and checklist, and it documents that tests were not run.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/biome-ignore-browser-output

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

⚡ Performance Benchmark

Latest commit:3696ffd chore(browser): Exclude WXT build output from biome
Status:✅ Benchmark complete!
Ubuntu:0.83s (±0.01s) → 0.84s (±0.02s) · +0.00s (+0.5%)
macOS:0.69s (±0.15s) → 0.71s (±0.14s) · +0.02s (+2.9%)
Windows:1.13s (±0.03s) → 1.13s (±0.03s) · +0.01s (+0.8%)
Details
  • Packing the repomix repository with node bin/repomix.cjs
  • Warmup: 2 runs (discarded), interleaved execution
  • Measurement: 20 runs / 30 on macOS (median ± IQR)
  • Workflow run

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.87%. Comparing base (34e7432) to head (3696ffd).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1800   +/-   ##
=======================================
  Coverage   91.87%   91.87%           
=======================================
  Files         133      133           
  Lines        5574     5574           
  Branches     1365     1365           
=======================================
  Hits         5121     5121           
  Misses        453      453           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yamadashy
yamadashy merged commit e3b15a4 into main Aug 11, 2026
49 checks passed
@yamadashy
yamadashy deleted the chore/biome-ignore-browser-output branch August 11, 2026 03:55
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.

1 participant