From 7b1a4e862e9a3f568a2bb8ad9219ffba98885adc Mon Sep 17 00:00:00 2001 From: CalDiMiroSage Date: Sat, 13 Jun 2026 07:37:08 +0200 Subject: [PATCH] fix(git): add .gitattributes for Husky LF on WSL/Linux Force LF line endings on .husky hooks so pre-commit runs correctly when committing from WSL. Also add shebang and set -e to pre-commit. Co-authored-by: Cursor --- .gitattributes | 1 + .husky/pre-commit | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c73f3c1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.husky/** text eol=lf diff --git a/.husky/pre-commit b/.husky/pre-commit index 97449c1..355561c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,4 @@ -npm run lint -npm test +#!/usr/bin/env sh +set -e +npm run lint +npm test