Open ayroblu opened 1 month ago
The following code hangs forever:
const prettier = require('@prettier/sync'); const prettierOptions = { plugins: ['prettier-plugin-hermes-parser'], }; const code = `// @flow strict function App() { const data = useLazyLoadQuery(graphql\`query AppQuery {} \`, {}) } `; for (let i = 0; i < 4; ++i) { console.log( prettier.format(code, { ...prettierOptions, parser: 'hermes' }).trim() ); }
Hermes git revision (if applicable): "prettier-plugin-hermes-parser": "0.19.2",
"prettier-plugin-hermes-parser": "0.19.2",
Don't have infinite loops
Bug Description
The following code hangs forever:
Hermes git revision (if applicable):
"prettier-plugin-hermes-parser": "0.19.2",
The Expected Behavior
Don't have infinite loops