From 4deb29ae1bf71d8da1a18b1a930883854b519949 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 18 Aug 2023 08:42:13 -0700 Subject: [PATCH] Make prettier ignore generated folders (#39076) Summary: This change introduce the `.prettierignore` file to skip some generated folders. Prettier was checking that the JS files inside the Pods/ and the sdks/ folders were properly formatted. However, we don't control those folders. Running prettier in those folders was taking extra 10s to 30s on average, some time we can now save. ## Changelog: [Internal] - Make prettier skip generated folders Pull Request resolved: https://github.com/facebook/react-native/pull/39076 Test Plan: Tested locally | Before | After | | --- | --- | | Screenshot 2023-08-18 at 11 28 51 | Screenshot 2023-08-18 at 11 29 09 | Reviewed By: christophpurrer Differential Revision: D48466583 Pulled By: cipolleschi fbshipit-source-id: 60a4335af2c337c6d3d143d8d5b56d4a41073feb --- .prettierignore | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000000..ece75238220 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +# Ignore Pods +**/Pods + +# Ignore hermes as it is downloaded from the react_native_pods +**/sdks/hermes +**/sdks/downloads