Skip to content

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

Closed as duplicate

Description

@thiagomurtinho

Environment

  • rtk 0.42.4 (Homebrew, /opt/homebrew/bin/rtk)
  • macOS (Apple Silicon)
  • Project lints with Biome, not ESLint: package.json → "lint": "biome check"

What happens

My lint script runs Biome. When it goes through rtk's command rewriting, I intermittently get this, with a misleading non-zero exit, even though Biome itself exits 0 and the project is clean:

ESLint output (JSON parse failed: EOF while parsing a value at line 1 column 0)

It masks the real lint result — I had to fall back to running the binary directly (./node_modules/.bin/biome check) to know the true status, which cost real debugging time across a multi-PR session (a green lint kept looking red).

It looks like the lint filter assumes ESLint's JSON output format and tries to JSON-parse Biome's text diagnostics, which fails.

Secondary data point

Running Biome as a bare command through rtk also fails:

$ rtk biome check
[rtk: No such file or directory (os error 2)]    # exit 127

(Biome resolves fine via npm run / node_modules/.bin, just not as a top-level rtk-wrapped command.)

Reproducibility

The JSON parse failed message is intermittent — I captured it from session logs, but 3 back-to-back npm run lint runs just now all passed through cleanly (exit 0, normal Biome output). So it seems to trigger only under some conditions (possibly when Biome reports findings / exits non-zero).

Expected

  • Detect Biome as a linter and handle its output format, or
  • when the linter isn't ESLint, pass the output through unchanged and preserve the real exit code — never synthesize a JSON parse failed error or a spurious non-zero exit.

Biome is a very common ESLint/Prettier replacement now, so first-class (or at least transparent) handling would help a lot. Happy to provide more logs if useful.

Activity

  1. changed the title [-]Biome lint output sometimes reported as `ESLint output (JSON parse failed)`, masking real status[/-] [+][BUG] Biome lint output sometimes reported as `ESLint output (JSON parse failed)`, masking real status[/+] on Jun 22, 2026
  2. pszymkowiak commented on Jun 25, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟠 Priority high
    🎯 Confidence 93%

    Summary

    rtk's lint output filter incorrectly assumes ESLint JSON format and corrupts Biome output with a spurious JSON parse error, masking real exit codes; PR #2570 already addresses this.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/parser/mod.rs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. Plajer commented on Jul 7, 2026

    @Plajer

    Can confirm the issue exists when using biomejs.
    The solution for now is to just write a special note in CLAUDE.md prompt (or related agent) about using the biome linter command directly instead of through npm run.

  4. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #1489, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions