chore(lint): enforce 2-space indent & add gpg pre-commit hook

This commit is contained in:
2026-03-04 02:45:53 +00:00
parent b98a14950c
commit 10286c2924
7 changed files with 135 additions and 118 deletions

View File

@@ -1 +1,11 @@
# Check if GPG signing is enabled
gpg_sign=$(git config --get commit.gpgsign || echo "false")
if [ "$gpg_sign" != "true" ]; then
echo "Error: GPG signing is not enabled or properly configured!"
echo "Please enable it globally using: git config --global commit.gpgsign true"
echo "Or locally by running: git config commit.gpgsign true"
exit 1
fi
npm run lint