Skip to content

Conversation

@usagi32
Copy link
Contributor

@usagi32 usagi32 commented Nov 4, 2025

Motivation

Code formatter for the leo language. This is based on biome, which is a popular code formatter for javascript, written in rust. Fortunately, its main formatting engine is generic enough that it can be used to make a formatter for any language. In theory, it could even support the incremental formatting as potential in the issue #28579, as biome has its own version of rowan as the biome_rowan crate.

Testing can be more for edge cases and for fine-tuning for specific preferences, but this should work in the majority of the cases.

closes #28579

Test Plan

Seemed more suitable to test in unit tests itself due to self contained nature of formatting elements requiring little to no contextual information. Not sure if we need the runner pattern for tests.

@mohammadfawaz
Copy link
Collaborator

mohammadfawaz commented Nov 7, 2025

Thank you for your contributions! This and the linter PR are certainly great to have. Due to other priorities, we don't have the bandwidth to review these PRs properly at this time. Hopefully, this will change soon.

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.

[Feature] Leo fmt

2 participants