treefmt {#treefmt}#

treefmt streamlines the process of applying formatters to your project, making it a breeze with just one command line.

The treefmt package provides functions for configuring treefmt using the module system, which are documented below, along with their options.

Alternatively, treefmt can be configured using treefmt-nix.

treefmt-functions.section.md

Options Reference {#sec-treefmt-options-reference}#

The following attributes can be passed to withConfig or evalConfig:

id-prefix: opt-treefmt-
list-id: configuration-variable-list
source: ../treefmt-options.json