fisker Cheung
fisker Cheung
If that's a real-world use case, I think we can accept it.
This function https://github.com/prettier/prettier/blob/99bc9d0b6d3a9bcc0de6e99786502fba2d29b4fe/src/language-js/embed/graphql.js#L108-L122 decides if the template should format as graphql. All you need to do is make it match your case.
Can't reproduce **Prettier 3.2.5** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAeAFnAhgEzgJwD4AdKAAjIwEZCB1OAIzIGUARAaTIFoz6AbSAFs4ZGBFGYyAQSgBzAK58s+MnkHiADvggArOGBioA9OhqljmXARJRzOAJYA3MmCUBnNwF5iIQVntQXJCw-lAEPjYUqFgaGlxQWI72slgw9tBkANp8ELIQAJJ+snDMEPL4YHAAut4gAORYHnAwbkY5eQB0GnJ1EaQUUTFxCUkpadBc9vCC-QMUaTB8cLUACtoAZvZLPrNz2vLw+AAyAQDWtUZaEJvbILsD+4cnUKdSBk5w9xQAxFc3cAAlMpPM61R4EZ6vd6OT53chzLJuOBLAxwHA1Hx-LaA4EQs4dexuN5pGE7eEUQjGIbxRLJVLpQJTOCCSKUIzUkZ08ZQGzGByOQggAA0IAgGm5bmQoGU2gA7itlAhJSgsHxZVgAJ6SkUMfBYMCnZrMLDCZ5wZDrVVInV6g1GjT6gKyZAwfDyOAipGCewut0ekBwAAeGgI9mEIT4ABUCAl8PY4MrLXxrSA3E6lgBFeQQeAWq3+nRuQPMdNwLM581IJMpgCO2fgazFypAjXicDRaOFIFd-j4ToAwhBBH5kC2+Hwu2m5EspDBXfYGAc4Cs8WE88n-egYII+LR0Ey3A7KswlVMnFMNaOwB4u453fkoHhYMwwHHxTIcMwYBqluuU1ckVoPUNFHLQEwIGEuwCJF8BgNYsFkEcq3zEUHXwGDRywORFGULstACGBaHsHAYHQZAAA4AAYRXwOA63sWj4MQrA-39GAsAYIiSLIpAACYRXkJFIw4xMUIDQQGDRPAcCOLCFAQuAADEIHwPw5ydTCDggEAAF8dKAA) ```sh --parser angular ``` **Input:** ```html Web SDK - Welcome to the Angular demo project ``` **Output:** ```html Web SDK - Welcome to the...
There is nothing we can do with the information you provide. You can try to delete part of your code and post small pieces of part that it throws.
Maybe you have the wrong parser configured? Try to run `yarn prettier --file-info /path/to/file` and check if the parser is correct.
@dependabot rebase
https://github.com/prettier/prettier/pull/5993#issuecomment-478573220
For the ones who want to contribute, 1. Update https://github.com/prettier/prettier/blob/d170b8f31dee2a415da8e7ba6ed4d2bb3fb733cd/src/language-js/print/call-arguments.js#L319 to match signature of `useImperativeHandle()` something like ```js ( args.length === 3 && args[0].type === "Identifier" && args[1].type === "ArrowFunctionExpression"...
For now you can escape `
Another case reported > I think I am also experiencing this sortof > > ``` > v-if="saveableObject?.address" > v-model:contact-person-saveble="saveableObject" > v-model:address="saveableObject.address" > :show-checkbox="true" > :object-name="nameof('address')" > > > ``` >...