dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
Tagged template formatting support
Tagged templates should be able to format with the host formatter similar to how things work for code blocks in dprint-plugin-markdown.
Related issues:
- https://github.com/dprint/dprint-plugin-typescript/issues/9
- https://github.com/dprint/dprint-plugin-typescript/issues/643
I think we can put the host formatter closure into Context struct, but this closure needs to be passed via:
- https://github.com/dprint/dprint-plugin-typescript/blob/45b3bd92ce7e19e46068de8abfc44ccccd752fba/src/generation/generate.rs#L34
- https://github.com/dprint/dprint-plugin-typescript/blob/45b3bd92ce7e19e46068de8abfc44ccccd752fba/src/generation/generate.rs#L28
- https://github.com/dprint/dprint-plugin-typescript/blob/45b3bd92ce7e19e46068de8abfc44ccccd752fba/src/format_text.rs#L73
- https://github.com/dprint/dprint-plugin-typescript/blob/45b3bd92ce7e19e46068de8abfc44ccccd752fba/src/format_text.rs#L64
- https://github.com/dprint/dprint-plugin-typescript/blob/45b3bd92ce7e19e46068de8abfc44ccccd752fba/src/format_text.rs#L42
My team is currently starting a new frontend project and lack of styled-component support is preventing us from using dprint, which is a pitty since we are already using it for all backend code.
Same here!
Is this related to #694?