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 npm run lint

View File

@@ -33,6 +33,7 @@ export default [
'no-unused-vars': 'off', 'no-unused-vars': 'off',
'no-undef': 'off', 'no-undef': 'off',
'no-debugger': 'off', 'no-debugger': 'off',
'indent': ['error', 2]
} }
}, },
{ {

View File

@@ -212,6 +212,12 @@ body {
box-sizing: border-box; box-sizing: border-box;
} }
::placeholder {
color: var(--text-muted);
opacity: 1;
/* Override Firefox default opacity */
}
.tool-textarea { .tool-textarea {
font-family: monospace; font-family: monospace;
resize: none; resize: none;