Expand description
Polyglot source formatting (Rust, TS, Python, C++, C#).
resq format — polyglot formatter with a shared implementation that
powers both the standalone command and the pre-commit format steps.
Design: each language exports format_<lang>(root, files, check) —
pre-commit calls these on its staged file list and then restages; the
CLI wrapper (resq format) calls them on an empty list, which tells
each formatter to operate on the whole project.
Structs§
- Format
Args - Arguments for the
formatcommand.
Enums§
- Format
Outcome - Outcome of a per-language format step.
Functions§
- format_
cpp - Format C/C++ files via
clang-format. - format_
csharp - Format C# via
dotnet format. - format_
python - Format Python files via
ruff format. - format_
rust - Format Rust files via
cargo fmt(runs against the whole workspace whenfilesis empty). - format_
ts - Format JS/TS/JSON/CSS files via Biome (preferring
biomeoverbunx --bun biome). - run
- Executes the
formatcommand.