Skip to content

Expand supported file extensions in formatter#36593

Closed
dwhoban wants to merge 1 commit into
anomalyco:devfrom
dwhoban:oxfmt-extensions
Closed

Expand supported file extensions in formatter#36593
dwhoban wants to merge 1 commit into
anomalyco:devfrom
dwhoban:oxfmt-extensions

Conversation

@dwhoban

@dwhoban dwhoban commented Jul 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This pull request expands the list of file extensions supported by the oxfmt formatter in formatter.ts. The main change is to significantly increase the range of file types that oxfmt can handle, making the formatter more versatile for different project types.

This is in line with https://oxc.rs/docs/guide/usage/formatter/language-support.html

Formatter support expansion:

  • Extended the extensions array in the oxfmt formatter to include additional file types such as .d.ts, .json, .jsonc, .json5, .css, .scss, .less, .pcss, .postcss, .graphql, .gql, .graphqls, .toml, .html, .htm, .xhtml, .vue, .svelte, .md, .markdown, .mdx, .yml, .yaml, .hbs, .handlebars, and .mjml, in addition to the existing JavaScript and TypeScript extensions.

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Added support for additional file extensions in formatter for oxfmt to align to https://oxc.rs/docs/guide/usage/formatter/language-support.html
@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Expand supported file extensions in formatter doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Jul 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.
  • "How did you verify your code works?" section is empty. Please explain how you tested.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 13, 2026
@github-actions github-actions Bot closed this Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant