Skip to content

chore: add .gitattributes to normalize line endings to LF - #494

Open
Tesserax805 wants to merge 1 commit into
CIDARLAB:Neptune_Renderfrom
Tesserax805:fix/gitattributes
Open

chore: add .gitattributes to normalize line endings to LF#494
Tesserax805 wants to merge 1 commit into
CIDARLAB:Neptune_Renderfrom
Tesserax805:fix/gitattributes

Conversation

@Tesserax805

Copy link
Copy Markdown

Adds .gitattributes to normalize line endings to LF across the codebase and configures core.autocrlf=true in git. This fixes eslint linebreak-style errors that currently block the dev build on Windows.

Why this matters:

  • Windows developers hit eslint failures because git checks out with CRLF, but the linting rule enforces LF
  • Mac/Linux developers never see the problem (they check out with LF naturally)
  • This fix enables cross-platform development without workarounds

Testing request:

Please test this on your primary development OS (Mac/Linux) to confirm the .gitattributes doesn't interfere with existing workflows. The configuration should be transparent — files still check out as LF on Unix, and autocrlf only applies the conversion when needed.

I look forward to expanding on this technology with you! :)

Configures git to automatically convert CRLF to LF for all source files
on Windows checkouts. This fixes eslint linebreak-style errors that block
the dev build on Windows without requiring lintOnSave to be disabled.

All existing files are normalized to LF in this commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant