aboutsummaryrefslogtreecommitdiff
path: root/root/nix/_treefmt-base.nix
blob: d613092fbe5d84f4864f4af594f57eed332686cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
  The base treefmt configuration that all projects should import
  from. This will include a consistent configuration for most, if not all,
  formatters/linters. This will NOT enable the formatters/linters except
  for a few that are used across all projects (nixfmt, typos etc.).
*/
{
  projectRootFile = "README.md";

  programs = {
    # keep-sorted start block=yes
    keep-sorted.enable = true;
    nixfmt.enable = true;
    typos.enable = true;
    # keep-sorted end
  };
}