Add treefmt

This commit is contained in:
Sridhar Ratnakumar 2022-05-07 09:09:21 -04:00
parent fafbc05712
commit 73137b50fa
2 changed files with 7 additions and 3 deletions

View file

@ -1,8 +1,9 @@
{ pkgs ? import <nixpkgs> { }, ... }:
pkgs.mkShell {
buildInputs = [
pkgs.nixpkgs-fmt
buildInputs = with pkgs; [
treefmt
nixpkgs-fmt
# To enable webhint to analyze source files
pkgs.nodejs
nodejs
];
}

3
treefmt.toml Normal file
View file

@ -0,0 +1,3 @@
[formatter.nix]
command = "nixpkgs-fmt"
includes = ["*.nix"]