Skip to content

feature request: oxfmt formatter #802

@trongthanh

Description

@trongthanh

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

Please add support for the JS/TS rust-based formatter oxfmt

Provide background

oxfmt is much faster in terms of startup time and processing time. With oxfmt, we don't need to run a background server as the cold startup time is near instant.

What is the significance of this feature?

nice to have

Additional details

I'm not fully aware of how this plugin works, but here's current limitations of oxfmt

  • Only JS and TS files are supported
  • Embedded parts like css-in-js are partially supported
  • Stdin and stdout are not supported
  • Configuration is not supported for
    • prettier field in package.json
    • Extensions other than .json(c)
  • Globs in positional paths are not expanded
    • But it works in ! prefixed exclude paths
  • Plugins are not supported
    • Some of them like sort-imports will be natively supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Not a priority. PRs welcomeenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions