@financebuddha/standards 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/husky/pre-commit +4 -2
- package/package.json +13 -5
package/husky/pre-commit
CHANGED
|
@@ -14,9 +14,11 @@ fi
|
|
|
14
14
|
# file first — grep -f treats every line (including '# AWS') as a regex, which
|
|
15
15
|
# would otherwise match the comments themselves.
|
|
16
16
|
if [ -f "$PATTERNS" ]; then
|
|
17
|
-
|
|
17
|
+
# `|| true` guards grep's exit-1-on-no-match from aborting the hook under
|
|
18
|
+
# husky's `set -e`.
|
|
19
|
+
CLEAN=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$PATTERNS" || true)
|
|
18
20
|
if [ -n "$CLEAN" ]; then
|
|
19
|
-
SECRETS=$(git diff --cached -U0 | grep -E "$CLEAN" 2>/dev/null)
|
|
21
|
+
SECRETS=$(git diff --cached -U0 | grep -E "$CLEAN" 2>/dev/null || true)
|
|
20
22
|
if [ -n "$SECRETS" ]; then
|
|
21
23
|
echo "❌ Possible secrets detected in staged changes:"
|
|
22
24
|
echo "$SECRETS"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financebuddha/standards",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared engineering standards: ESLint, TypeScript, Prettier, commitlint, secrets scanning, and Claude skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,9 +58,17 @@
|
|
|
58
58
|
"typescript": ">=5"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
|
-
"eslint": {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
61
|
+
"eslint": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"eslint-config-next": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"prettier": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"typescript": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
}
|