[BE] switch to hermes parser for prettier (#30421)

This will allow us to parse new flow syntax since the `flow` parser is
no longer updated.

I had to exclude some files and have them fall back to `flow` parser
since they contain invalid graphql syntax that makes the plugin crash.
This commit is contained in:
Jan Kassens
2024-07-22 19:16:13 -04:00
committed by GitHub
parent b430a682f0
commit cd76eb41e5
14 changed files with 104 additions and 35 deletions
+3
View File
@@ -14,6 +14,9 @@
.*/__mocks__/.*
.*/__tests__/.*
# contains modern flow syntax that requires a Flow upgrade
.*/node_modules/prettier-plugin-hermes-parser/.*
# TODO: noop should get its own inlinedHostConfig entry
.*/packages/react-noop-renderer/.*