Skip to content

fix: enforce LF line endings to fix lint failures on Windows#4

Open
HeyItsGilbert wants to merge 1 commit intophoinixi:mainfrom
HeyItsGilbert:fix/enforce-lf-line-endings
Open

fix: enforce LF line endings to fix lint failures on Windows#4
HeyItsGilbert wants to merge 1 commit intophoinixi:mainfrom
HeyItsGilbert:fix/enforce-lf-line-endings

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Contributor

Summary

  • Add .gitattributes with * text=auto eol=lf to enforce LF line endings in the repository regardless of OS
  • Set "endOfLine": "lf" in .prettierrc to make Prettier explicitly require LF
  • Convert all existing files from CRLF to LF via eslint --fix

Context

npm run lint was failing on Windows because git config core.autocrlf=true checks out files with CRLF line endings, but Prettier defaults to expecting LF. This caused every file to report Delete ␍ errors.

Test plan

  • Verify npm run lint passes
  • Verify npm run build succeeds
  • Verify tests pass

🤖 Generated with Claude Code

Add .gitattributes with eol=lf and set endOfLine: "lf" in .prettierrc
to ensure consistent line endings across all platforms. Convert all
existing files from CRLF to LF.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HeyItsGilbert
Copy link
Copy Markdown
Contributor Author

I was messing with installing this on my resume repo and I realized it didn't publish my changes from last time due to lints. This should hopefully resolve it.

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