File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1+ # Editor configuration, see http://editorconfig.org
2+ root = true
3+
4+ [* ]
5+ end_of_line = lf
6+ insert_final_newline = true
7+ trim_trailing_whitespace = true
8+ charset = utf-8
9+ indent_style = space
10+ indent_size = 2
11+
12+ [* .md ]
13+ max_line_length = off
14+ trim_trailing_whitespace = false
15+ indent_size = unset
16+
17+ [* .py ]
18+ indent_size = 4
19+
20+ [* .sh ]
21+ indent_style = space
22+ indent_size = 4
23+ binary_next_line = true
24+ switch_case_indent = true
25+ space_redirects = false
26+ keep_padding = true
Original file line number Diff line number Diff line change 6363 treefmt = { config , ...} : {
6464 flakeFormatter = true ;
6565 projectRootFile = "flake.nix" ;
66- programs . alejandra . enable = true ;
66+
67+ programs = {
68+ alejandra . enable = true ;
69+ gofumpt . enable = true ;
70+ ruff . enable = true ;
71+ shellcheck . enable = true ;
72+ shfmt . enable = true ;
73+ } ;
74+
75+ settings . formatter = lib . mkIf config . programs . shfmt . enable {
76+ # Empty out the CLI options list so that `shfmt` uses the settings
77+ # from `.editorconfig`.
78+ shfmt . options = lib . mkForce [ ] ;
79+ } ;
6780 } ;
6881 } ;
6982 } ) ;
You can’t perform that action at this time.
0 commit comments