From 718b4636c7059bc54fe9c499fcbbf6bbcbe2ab65 Mon Sep 17 00:00:00 2001 From: Brayan Oliveira <69634269+BrayanDSO@users.noreply.github.com> Date: Thu, 17 Mar 2022 12:44:16 -0300 Subject: [PATCH] Change .prettierrc endOfLine to auto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Windows, conflict between git's CRLF normalization and prettier's was generating EOL diff To solve it, this changes `endOfLine` to `auto`, which does: `Maintain existing line endings (mixed values within one file are normalised by looking at what’s used after the first line)` --- .prettierrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index d525c92b4a..6c31bef7fe 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,5 +6,6 @@ "bracketSpacing": true, "bracketSameLine": false, "tabWidth": 4, - "printWidth": 100 + "printWidth": 100, + "endOfLine": "auto" }