| 
									
										
										
										
											2024-04-13 22:42:03 -04:00
										 |  |  | # One CLI to format the code tree - https://github.com/numtide/treefmt | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [global] | 
					
						
							|  |  |  | # Glob patterns of files to exclude | 
					
						
							|  |  |  | excludes = [ ".git/" ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [formatter.nixfmt] | 
					
						
							|  |  |  | # Formatter to run | 
					
						
							|  |  |  | command = "nixfmt" | 
					
						
							|  |  |  | # Command-line arguments for the command | 
					
						
							|  |  |  | #options = [] | 
					
						
							|  |  |  | # Glob pattern of files to include | 
					
						
							|  |  |  | includes = [ "*.nix" ] | 
					
						
							| 
									
										
										
										
											2025-03-13 17:50:03 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | [formatter.jsonfmt] | 
					
						
							|  |  |  | command = "jsonfmt" | 
					
						
							|  |  |  | excludes = [] | 
					
						
							|  |  |  | includes = ["*.json"] | 
					
						
							|  |  |  | options = ["-w"] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [formatter.shfmt] | 
					
						
							|  |  |  | command = "shfmt" | 
					
						
							|  |  |  | excludes = [] | 
					
						
							|  |  |  | includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"] | 
					
						
							|  |  |  | options = ["-i", "2", "-s", "-w"] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [formatter.yamlfmt] | 
					
						
							|  |  |  | command = "yamlfmt" | 
					
						
							|  |  |  | excludes = [] | 
					
						
							|  |  |  | includes = ["*.yaml", "*.yml"] | 
					
						
							|  |  |  | options = ["-formatter","indent=4"] |