Skip to content

Commit

Permalink
chore(gitattributes): configure LF line endings for JavaScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jun 4, 2023
1 parent bc521a6 commit 4beba8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# ensures this even if the user has not set core.autocrlf.
* text=auto

# Checkout JavaScript files with LF line endings
# to prevent `prettier` from reporting errors on Windows.
*.js eol=lf
*.jsx eol=lf
*.ts eol=lf
*.tsx eol=lf
*.json eol=lf

# This directory contains email messages verbatim, and changing CRLF to
# LF will corrupt them.
test-data/** text=false
Expand Down

0 comments on commit 4beba8c

Please sign in to comment.