From 4ad2fc8a9e8613d6d7bf5da00bdd9c9e4388bd2a Mon Sep 17 00:00:00 2001 From: Pranav Yadav Date: Mon, 17 Apr 2023 12:38:24 -0700 Subject: [PATCH] chore: specify `eol` config in `.prettierrc` as `lf` (#36884) Summary: - Although we have `.editorconfig`, on Windows machines most of the times the IDEs default to `CRLF` as default EOL config - we've already specified the `eol` config as `lf` in `.editorconfig` at root level - this diff syncs same config for prettier as well >NOTE: Using `[skip ci]` as it's non code change and is tested for formatting. ## Changelog: [GENERAL] [CHANGED] - Specify `eol` config in `.prettierrc` as `lf` at the root level Pull Request resolved: https://github.com/facebook/react-native/pull/36884 Test Plan: - `yarn run format` --> _nothing should change_ Reviewed By: christophpurrer Differential Revision: D45056330 Pulled By: cortinico fbshipit-source-id: 166cbba04728e04521de58144abf0576730c8edd --- .prettierrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index 600a26c495..fd47e617ec 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,6 @@ "bracketSpacing": false, "requirePragma": true, "singleQuote": true, - "trailingComma": "all" + "trailingComma": "all", + "endOfLine": "lf" }