dillon1000/react
Commit
Browse files [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.
Changed paths14 files
First-parent comparison.prettierignore ModifiedM .prettierrc.js ModifiedM compiler/apps/playground/package.json ModifiedM compiler/package.json ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hook-noAlias.expect.md ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/preserve-memo-validation/useMemo-constant-prop.expect.md ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/ternary-expression.expect.md ModifiedM compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/ternary-expression.js ModifiedM compiler/yarn.lock ModifiedM package.json ModifiedM packages/react-devtools-shared/src/hooks/astUtils.js ModifiedM packages/react-noop-renderer/src/createReactNoop.js ModifiedM scripts/flow/config/flowconfig ModifiedM yarn.lock ModifiedPatch
Files changed
Rendering syntax-highlighted changes…