Skip to content

Commit

Permalink
devenv: Add pre-commit.hooks.rome to use biome
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSensor committed Sep 26, 2023
1 parent 6d1e7bf commit a67c1ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/js/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ with lib; {

pre-commit = mkIf (!env ? CI) {
hooks.editorconfig-checker.enable = true;
# hooks.rome.enable = true; TODO: either wait or make PR to github:cachix/devenv
hooks.rome.enable = true;
};
}
2 changes: 1 addition & 1 deletion examples/javascript/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ with lib; {

pre-commit = mkIf (!env ? CI) {
hooks.editorconfig-checker.enable = true;
# hooks.rome.enable = true; TODO: either wait or make PR to github:cachix/devenv
hooks.rome.enable = true;
};
}
1 change: 1 addition & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ _final: prev: {
lld = prev.lld_16;
llvm = prev.llvm_16;

rome = prev.biome; # override pre-commit.hooks.rome to use biome
}

0 comments on commit a67c1ea

Please sign in to comment.