Skip to content

Commit

Permalink
build: run nixpkgs-fmt on modify (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
macalinao committed Jun 1, 2022
1 parent 5a77a67 commit 447b586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Expand Up @@ -14,7 +14,7 @@
rec {
packages.ci = pkgs.buildEnv {
name = "ci";
paths = with pkgs; [ nodejs yarn ];
paths = with pkgs; [ nodejs yarn nixpkgs-fmt ];
};
devShell = pkgs.mkShell { buildInputs = [ packages.ci ]; };
});
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"packages/*"
],
"lint-staged": {
"*.nix": "nixpkgs-fmt",
"*.{ts,tsx}": "eslint --cache --fix",
"*.{md,js,json,yml,yaml,css,md}": "prettier --write"
},
Expand Down

0 comments on commit 447b586

Please sign in to comment.