WhatBrokeToday
FAQ
Today's Trends
minorInvestigatingBun

Bun Lint Differs From ESLint in First Syntax Error Selection

  1. Investigating(current)
  2. Trending(upcoming)
  3. Workaround available(upcoming)
  4. Resolved(upcoming)

Executive summary

The espree emulation in bun lint can select a different first syntax error compared to ESLint when a file contains multiple syntax errors. Both tools ultimately reject the affected files, but their error ordering can differ.

No verified workaround yet

None of the linked reports describe a mitigation. Follow this incident to hear when one appears.

Official fix
Technical root cause

Some errors are recorded as noticed earlier than acorn notices them, and the opposite ordering also occurs, causing discrepancy between Bun's emulation and ESLint.

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    lint: match ESLint's first syntax error when a file has multiple errors(opens GitHub issue in a new tab)

    Problem The espree emulation in bun lint can select a different first syntax error from ESLint when a file has multiple syntax errors. Some errors are recorded as noticed earlier than acorn notices them; the opposite ordering also occurs. Both tools reject the files below. The behavior predates the JSX spread change in the linked PR and is outside that PR's scope. Error ordering can differ even without JSX spreads. Reported comparisons Reported by @robobun using ESLint 10.12.0. For JSX…

    by coderabbitai[bot] 0upvotes 1comments

Timeline

  1. First report on GitHub issue

    lint: match ESLint's first syntax error when a file has multiple errors

    Source