Skip to content

npm run lint fails when lint script uses oxlint --format gitlab instead of ESLint #2154

@medallyon

Description

@medallyon

After migrating a project from ESLint to oxlint, npm run lint fails at the RTK layer with:

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

Lint script:

"lint": "tsc --noEmit && oxlint --format gitlab"

oxlint output (when run directly):

[]

Root cause: RTK appears to detect lint or eslint in the command and attempt to parse the output as ESLint JSON. When the command uses oxlint instead, the output format differs and parsing fails.

Expected: RTK passes through oxlint output without attempting ESLint JSON parsing, or detects oxlint commands and applies appropriate filtering.

RTK version: 0.42.0
OS: Windows 11 Pro v10.0.26200
Environment: Claude using Git Bash for Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions