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
After migrating a project from ESLint to oxlint,
npm run lintfails at the RTK layer with:Lint script:
oxlint output (when run directly):
Root cause: RTK appears to detect
lintoreslintin the command and attempt to parse the output as ESLint JSON. When the command usesoxlintinstead, the output format differs and parsing fails.Expected: RTK passes through oxlint output without attempting ESLint JSON parsing, or detects
oxlintcommands and applies appropriate filtering.RTK version: 0.42.0
OS: Windows 11 Pro v10.0.26200
Environment: Claude using Git Bash for Windows