forked from extern/flakelight
Add default formatting for json and yaml files
This commit is contained in:
parent
7e73ee23d6
commit
5fbb85744b
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user