From 4beba8ce3c890d3d1ff9b8f9bc73952e5340a801 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 2 Jun 2023 19:22:36 +0000 Subject: [PATCH] chore(gitattributes): configure LF line endings for JavaScript files --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitattributes b/.gitattributes index 1359bb5fc6..ccc76301f4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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