Skip to content

oxfmt: add less/toml support and allFiles option#497

Open
ryoppippi wants to merge 2 commits intonumtide:mainfrom
ryoppippi:feature/oxfmt-less-toml-allfiles
Open

oxfmt: add less/toml support and allFiles option#497
ryoppippi wants to merge 2 commits intonumtide:mainfrom
ryoppippi:feature/oxfmt-less-toml-allfiles

Conversation

@ryoppippi
Copy link
Copy Markdown

@ryoppippi ryoppippi commented Apr 12, 2026

Add *.less and *.toml to the default includes (TOML support was previously unstable in oxc but has since been improved). Also add an allFiles option that sets includes = ["*"] and passes --no-error-on-unmatched-pattern to silently skip unsupported files.

See: https://oxc.rs/docs/guide/usage/formatter/quickstart.html#pre-commit-with-lint-staged

Add *.less and *.toml to the default includes list to match the full
set of formats supported by oxfmt.

Introduce an allFiles option (default false) that, when enabled,
switches the include pattern to "*" and passes
--no-error-on-unmatched-pattern so unsupported file types are silently
skipped rather than causing an error.

See: https://oxc.rs/docs/guide/usage/formatter/quickstart.html#pre-commit-with-lint-staged
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.

1 participant