summaryrefslogtreecommitdiff
path: root/git-hooks/pre-commit
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-11-02 20:02:24 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-11-02 20:02:24 -0400
commit22ce0549e20ee397cf5953bd6b7aafc752deaa28 (patch)
tree59e116cd0a198de04a2dbd3bbb632ec3dee6fed5 /git-hooks/pre-commit
parent0e14a3b7e365c05992848cfbc4b8d7d9681d6d04 (diff)
Run prettier, make lint part of pre-commit
Diffstat (limited to 'git-hooks/pre-commit')
-rwxr-xr-xgit-hooks/pre-commit3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index 4485005..22c5dfe 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -8,7 +8,8 @@
npm ci --dry-run
# Make sure Cargo.lock is up to date with Cargo.toml.
cargo update --locked --workspace
-# Make sure there are no screamers in the code.
+# Make sure there are no screamers in the code (both languages).
+npm run lint
cargo check
# Make sure the prepared statement data in .sqlx is up to date. Requires
# `cargo-sqlx` (`cargo install cargo-sqlx`).