Skip to content

fix(lint): preserve biome routing - #2570

Closed
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2540-biome-lint
Closed

YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2540-biome-lint

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep explicit biome/eslint rewrite prefixes when routing through rtk lint
  • infer the package linter from package.json lint scripts/dependencies before defaulting to ESLint
  • add regression coverage for explicit Biome rewrites and package.json Biome inference

Fixes #2540

Verification

  • cargo +1.93.0 test preserves_explicit_linter -- --nocapture
  • cargo +1.93.0 test infer_linter -- --nocapture
  • cargo +1.93.0 test rewrite_lint -- --nocapture
  • cargo +1.93.0 test lint -- --nocapture
  • cargo +1.93.0 run --quiet -- rewrite "biome check"
  • cargo +1.93.0 run --quiet -- rewrite "npm exec biome check"
  • cargo +1.93.0 run --quiet -- rewrite "eslint src --max-warnings=0"
  • cargo +1.93.0 run --quiet -- rewrite "npm run lint"
  • cargo +1.93.0 fmt --all -- --check
  • cargo +1.93.0 clippy --all-targets
  • cargo +1.93.0 test --all -- --skip small_grep_not_worse_than_plain
  • git diff --check

@YOMXXX

YOMXXX commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Status note: the red benchmark check is not caused by this PR's biome-routing change. The failing row is curl text: CI compares curl -s https://httpbin.org/robots.txt at 8 tokens with rtk curl https://httpbin.org/robots.txt at 40 tokens, so the external network fixture can make the raw output smaller than the RTK path and trip the negative-savings gate.

I split the benchmark fixture fix into #2596, which replaces the httpbin curl benchmark with local file:// fixtures and is green. Once #2596 lands, rerunning this PR should clear benchmark; all other checks here are green.

@YOMXXX

YOMXXX commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

CI follow-up: the red benchmark here is the shared curl fixture failure, not this PR's code path. I rebased and force-pushed #2596 (benchmark curl local fixtures) onto current develop; its new CI run is green, including benchmark.\n\nNext step for this PR: once #2596 lands, rerun CI / rebase on current develop so the benchmark uses the local file:// curl fixtures instead of the unstable external robots.txt response.\n\nCurrent extra state checked from GitHub: PR #2533 and #2570 are also conflicting with develop; #2584 is mergeable but still blocked by review/branch status.

@YOMXXX
YOMXXX force-pushed the fix/issue-2540-biome-lint branch from bd53785 to 9c739f1 Compare July 19, 2026 12:28
@YOMXXX

YOMXXX commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Ready for review/merge. Rebased onto current develop, conflicts resolved, and the fresh CI run is green, including benchmark and all platform tests. The conflict resolution preserves both biome/eslint lint routing and the current PHP tool normalization path.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Biome lint output sometimes reported as ESLint output (JSON parse failed), masking real status

1 participant