Skip to content

Add .gitattributes to normalize line endings to LF#2144

Open
rimsha-shoukat wants to merge 1 commit intotrekhleb:masterfrom
rimsha-shoukat:fix/line-endings-gitattributes
Open

Add .gitattributes to normalize line endings to LF#2144
rimsha-shoukat wants to merge 1 commit intotrekhleb:masterfrom
rimsha-shoukat:fix/line-endings-gitattributes

Conversation

@rimsha-shoukat
Copy link
Copy Markdown

Problem

Windows users face ESLint linebreak-style errors on fresh clone
because Git on Windows auto-converts LF to CRLF on checkout.

This causes npm run lint to report thousands of errors on Windows
without the contributor changing a single line of code.

Fix

Added .gitattributes to enforce LF line endings across all
platforms so npm run lint passes on Windows, Linux and macOS
without any manual intervention.

Testing

  • Verified npm run lint passes on Windows after this change

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