Skip to content

Commit

Permalink
Merge pull request #102 from akirak/treefmt-changes
Browse files Browse the repository at this point in the history
Change the default treefmt-nix settings
  • Loading branch information
akirak authored Oct 15, 2024
2 parents 0951dc8 + 429cf65 commit 00bd531
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions go/treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

programs.gofmt.enable = true;

# JSON
programs.biome.enable = true;

# GitHub Actions
programs.yamlfmt.enable = true;
programs.actionlint.enable = true;
Expand Down
13 changes: 10 additions & 3 deletions treefmt/treefmt.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
projectRootFile = "treefmt.nix";

# Format Nix
programs.nixfmt-rfc-style.enable = true;

# You can add formatters for your languages.
# See https://github.com/numtide/treefmt-nix#supported-programs

# Nix
programs.nixfmt.enable = true;

# GitHub Actions
programs.yamlfmt.enable = true;
programs.actionlint.enable = true;

# Markdown
programs.mdformat.enable = true;
}

0 comments on commit 00bd531

Please sign in to comment.