Skip to content

Commit 21cbbc4

Browse files
committed
Check for invisible chars or other PromptShield threats before every commit
1 parent ad5a551 commit 21cbbc4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx|js|
33
[ -z "$FILES" ] && exit 0
44

55
biome check --write $FILES
6+
pnpx @promptshield/cli --check $FILES
67

78
git add $FILES

0 commit comments

Comments
 (0)