Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
Comment thread
jbampton marked this conversation as resolved.
*.webp binary
*.avif binary
*.pdf binary
*.woff binary
*.woff2 binary
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ repos:
- id: mixed-line-ending
name: run mixed-line-ending
description: replaces or checks mixed line ending
args: [--fix=lf]
Comment thread
jbampton marked this conversation as resolved.
types: [text]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The types: [text] property is redundant because the mixed-line-ending hook already includes types: [text] in its default configuration (as defined in the pre-commit-hooks manifest). Removing it keeps the configuration cleaner without changing the behavior.

        args: [--fix=lf]

Comment thread
jbampton marked this conversation as resolved.
Outdated

- repo: https://github.com/biomejs/pre-commit
rev: "v2.4.8"
Expand Down
Loading