diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..431b691 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +# Enforce LF line endings for all text files to prevent CRLF issues on Windows +* text=auto eol=lf + +# Explicitly enforce LF for YAML files (prevents yamllint failures on Windows) +*.yaml text eol=lf +*.yml text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.avif binary +*.pdf binary +*.woff binary +*.woff2 binary diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3df4da0..62600e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -106,6 +106,7 @@ repos: - id: mixed-line-ending name: run mixed-line-ending description: replaces or checks mixed line ending + args: [--fix=lf] - repo: https://github.com/biomejs/pre-commit rev: "v2.4.8"