From 22ce0549e20ee397cf5953bd6b7aafc752deaa28 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sat, 2 Nov 2024 20:02:24 -0400 Subject: Run prettier, make lint part of pre-commit --- git-hooks/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-hooks/pre-commit') 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`). -- cgit v1.2.3