summaryrefslogtreecommitdiff
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/prettier/package.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/checks/prettier/package.nix b/checks/prettier/package.nix
new file mode 100644
index 0000000..03be49c
--- /dev/null
+++ b/checks/prettier/package.nix
@@ -0,0 +1,11 @@
+{
+ lib,
+ runCommand,
+ root,
+ nodePackages,
+}:
+runCommand "check-prettier" {} ''
+ cd ${root}
+ ${lib.getExe nodePackages.prettier} --ignore-path '.git' --check .
+ touch $out
+''