New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request][Enhancement] json file output #2899
Comments
Not clear what is expected result? add an option to save to file ? or change formatting ? |
Two requests wrapped in one here:
|
If eslint doesn't support this, I wonder if you can run oxlint twice with different formatters given oxlint is super fast 😅 |
@Boshen - that definitely would work, but feels a bit verbose to have every script look like: If we don't want to allow multiple reporters, how would you feel about me opening a PR with a |
@MIreland Happy to accept any eslint cli options, https://eslint.org/docs/latest/use/command-line-interface#-o---output-file On accepting multiple formatters, you may raise another issue for it, although eslint doesn't accept multiple formatters, I may be able to bend the rule because it's not that hard to implement 🤔 |
Right now, there isn't a clean way to get JSON output into a file. In this sample project, I use:
"oxlint:json": "mkdir -p artifacts && oxlint src --format json > artifacts/oxc-lint.json",
But the output is invalid:
On a similar note (I can make this a separate ticket if desired), we would REALLY appreciate being able to specify multiple reporters- specifically, we want human-readable terminal output at the same time we generate machine-readable JSON output.
We currently use this eslint wrapper to achieve this with eslint. It would be great to offer it natively for oxlint.
The text was updated successfully, but these errors were encountered: