diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 20:02:24 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 20:02:24 -0400 |
| commit | 22ce0549e20ee397cf5953bd6b7aafc752deaa28 (patch) | |
| tree | 59e116cd0a198de04a2dbd3bbb632ec3dee6fed5 /git-hooks | |
| parent | 0e14a3b7e365c05992848cfbc4b8d7d9681d6d04 (diff) | |
Run prettier, make lint part of pre-commit
Diffstat (limited to 'git-hooks')
| -rwxr-xr-x | git-hooks/pre-commit | 3 |
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`). |
