Skip to content

Conversation

@FLchs
Copy link
Contributor

@FLchs FLchs commented Dec 4, 2025

I'm not sure is this PR is acceptable, it runs the Oxlint linter with the --fix argument that applies automatic fixes : https://oxc.rs/docs/guide/usage/linter/automatic-fixes.html

I had to add it to my config to replicate the auto-fix from the eslint LS.
The config is also be customized to include other kind of fixes :
args = { "--fix-suggestions"}

According to the documentation :

--fix                   # Safe fixes only
--fix-suggestions       # Safe suggestions only
--fix --fix-suggestions # Safe fixes and suggestions

But as it is not really a formatter maybe it is out of scope?

@github-actions github-actions bot requested a review from stevearc December 4, 2025 19:32
@stevearc
Copy link
Owner

Yeah there's some precedent for this kind of lint auto-fixer in conform alread. If it's something that people might want to add to their own configs if they're using oxlint in their projects, then it's something that's useful to include in the conform builtins. Thanks for the PR!

@stevearc stevearc merged commit 005bd3b into stevearc:master Dec 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants