1
1
forked from extern/flakelight

Add default formatting for json and yaml files

This commit is contained in:
Archit Gupta 2023-04-14 10:43:39 -07:00
parent 7e73ee23d6
commit 5fbb85744b

View File

@ -32,13 +32,10 @@ let
+ optionalString (!pathExists (src + /.ecrc))
" -disable-indent-size -disable-max-line-length";
});
devTools = { pkgs, ... }: with pkgs; [
nixpkgs-fmt
nodePackages.prettier
];
devTools = pkgs: with pkgs; [ nixpkgs-fmt nodePackages.prettier ];
formatters = {
"*.nix" = "nixpkgs-fmt";
"*.md" = "prettier --write";
"*.md | *.json | *.yml" = "prettier --write";
};
};