You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using dprint_plugin_typescript::format_text to programmatically format generated JavaScript, TypeScript, and jsx/tsx files from my code generation cli. This approach works well for these file types, but I would also like to format generated .vue and .svelte files using a similar method.
When attempting to format vue code, the dprint_plugin_typescript::format_text function does not work as expected. Here's an example:
Unexpected token `{`. Expected identifier, string literal, numeric literal or [ for the computed key at file:///temp.ts:3:23
<div>{{ message }}</div>
Is there a way to extend the functionality of format_text to support vue and svelte files? Or would creating a plugin be a viable solution for this use case?
Any help on this would be highly appreciated.
Additional Information:
dprint version: 0.66.2
dprint_plugin_typescript version: 0.91.1
Thank you.
The text was updated successfully, but these errors were encountered:
I am using
dprint_plugin_typescript::format_text
to programmatically format generated JavaScript, TypeScript, and jsx/tsx files from my code generation cli. This approach works well for these file types, but I would also like to format generated.vue
and.svelte
files using a similar method.When attempting to format vue code, the
dprint_plugin_typescript::format_text
function does not work as expected. Here's an example:This results in an error:
Is there a way to extend the functionality of
format_text
to supportvue
andsvelte
files? Or would creating a plugin be a viable solution for this use case?Any help on this would be highly appreciated.
Additional Information:
dprint
version:0.66.2
dprint_plugin_typescript
version:0.91.1
Thank you.
The text was updated successfully, but these errors were encountered: