-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreefmt.nix
More file actions
29 lines (24 loc) · 797 Bytes
/
Copy pathtreefmt.nix
File metadata and controls
29 lines (24 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
# treefmt configuration
# Reference: https://github.com/numtide/treefmt-nix
# Formats multiple file types with a single command
# Usage: treefmt (or nix run .#treefmt)
projectRootFile = "flake.nix";
programs = {
# Nix formatters
nixfmt.enable = true; # Official Nix formatter (RFC-style is now default)
deadnix.enable = true; # Find unused Nix code
# Shell script formatters
shfmt.enable = true;
# Note: shellcheck is a linter, not a formatter - run separately if needed
# Python formatters
ruff-format.enable = true;
ruff-check.enable = true;
# YAML formatter
yamlfmt.enable = true;
# Multi-language formatter
prettier.enable = true; # JS/TS/JSON/CSS/HTML/etc
# GitHub Actions linter
actionlint.enable = true;
};
}