Skip to content

Commit

Permalink
doc: add treefmt config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobLichterfeld committed Oct 5, 2024
1 parent a6ea3f2 commit 4080528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/flake-modules/formatter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# Auto formatters. This also adds a flake check to ensure that the
# source tree was auto formatted.
treefmt.config = {
flakeFormatter = true;
flakeCheck = true;
build.check = true;
flakeFormatter = true; #Enables treefmt the default formatter used by the nix fmt command
flakeCheck = true; #Add a flake check to run treefmt
build.check = true; #Create a flake check to test that the given project tree is already formatted. Input argument is the path to the project tree (usually ‘self’).
projectRootFile = "flake.nix";

# we really need to mirror the treefmt.toml as we can't use it directly
Expand Down

0 comments on commit 4080528

Please sign in to comment.